Is possible? 'Running 'bench migrate' without triggering 'scheduler_events'

Hello,

When I add a new ‘scheduler_event’ to ‘hooks.py,’ it seems that I need to run the ‘bench --site xxx.xx migrate’ command to activate the newly added function. However, when I run this command, all the ‘scheduler_events’ in ‘hooks.py’ are executed at that moment. I don’t want this to happen because the ‘scheduler_events’ contain functions that send emails to users at specific times of the day.

What can I do to prevent this?
Is there a command other than ‘bench migrate’ to apply changes in ‘hooks.py’?
Or does ‘bench migrate’ have an additional parameter?

They aren’t supposed to execute immediately.

This was fixed a while ago: https://github.com/frappe/frappe/pull/22795 (v14.53+ should be fine)