Can we make a celery task run at 1:30, 3:00, 4:30, 6 AM using single crontab function?
i.e 'schedule': crontab(minute=30, hour='1, 3, 4, 6') will run it at 1:30, 3:30, 4:30, 6:30AM
but I want it to run every 90 mins from 1:30 to 6AM
Can we make a celery task run at 1:30, 3:00, 4:30, 6 AM using single crontab function?
i.e 'schedule': crontab(minute=30, hour='1, 3, 4, 6') will run it at 1:30, 3:30, 4:30, 6:30AM
but I want it to run every 90 mins from 1:30 to 6AM
Copyright © 2021 Jogjafile Inc.
I would create two separate schedules (not separate function) as
Here, the schedules are pointing towards the same function named
my_task_function(...), but with separate schedules configs.In this setting, the
task_onewill execute at 1.30 and 4.30 UTC whereas thetask_twowill get executed at3.00and6.00UTC