django_celery_beat.tzcrontab
¶
Timezone aware Cron schedule Implementation.
- class django_celery_beat.tzcrontab.TzAwareCrontab(minute='*', hour='*', day_of_week='*', day_of_month='*', month_of_year='*', tz=datetime.timezone.utc, app=None)¶
Timezone Aware Crontab.
- __init__(minute='*', hour='*', day_of_week='*', day_of_month='*', month_of_year='*', tz=datetime.timezone.utc, app=None)¶
Overwrite Crontab constructor to include a timezone argument.
- is_due(last_run_at)¶
Calculate when the next run will take place.
Return tuple of
(is_due, next_time_to_check)
. Thelast_run_at
argument needs to be timezone aware.
- nowfunc()¶