I've got some periodic tasks that need to run at midnight, on the first day of every month, but on the specific timezone of the client. I'm trying to keep everything in UTC, so I have
CELERY_ENABLE_UTC = True
So if I have multiple tasks, that each need to be run at midnight in a specific timezone, what is the cleanest way to do this with Celery? For instance, run these 2 tasks at midnight in their respective timezones?
#for Client 1, this needs to run at Midnight EST (US/Eastern)
schedule1 = crontab(day_of_month=1,
hour = 0,
minute = 0
)
#for Client 2, this needs to run at Midnight PST (US/Pacific)
schedule1 = crontab(day_of_month=1,
hour = 0,
minute = 0
)