Cron job executing twice

I createad a cron which is scheduled to run at 8 am everyday , but its executing twice one at 8 and another on at 8:01, how to fix this

Add this line in you function.

scheduler.add_job(my_function_to_run, ‘cron’, hour=8,minute=0)

In hooks file, add this one

scheduler_events = {
“all”: [

how this will work, it will execute every minutes