I am using celery beat to schedule some tasks. I'm able to use the CELERY_TIMEZONE setting to schedule the tasks using the crontab schedule and it runs at the scheduled time in the mentioned time zone.
But I want to be able to setup multiple such tasks for different timezones in the same application (single django settings.py). I know which task needs to run in what timezone when the task is being scheduled.
Is it possible to specify a different timezone for each of the tasks?
I'm using django (1.4) with celery (3.0.11) and django celery (3.0.11).
I've looked at the djcelery.schedulers.DatabaseScheduler
class and it's base class, but I can't figure out how and where the timezone is getting used. Can I write a custom scheduler that can make each job run in a different timezone?
Thanks,
from django.utils import timezone
now = timezone.now()
– Dyslexia