Celery beat (Python)

Test a Celery beat crontab schedule.

Paste a cron string as you would pass it to crontab.from_string(). The tester uses a port of Celery 5.7’s crontab_parser, checked against Celery itself, and turns the string into a keyword-argument crontab() call for beat_schedule.

How Celery beat (crontab) differs from Linux cron. Day of week: 0-6; 0 is Sunday; 7 is rejected. Time zone: app.conf.timezone; UTC when unset. Compare Celery beat (crontab) with Linux cron, side by side →
The rules

How Celery beat crontab reads a schedule.

Fields (from_string)minute hour day-of-month month day-of-week, separated by single spaces.
Day of week0-6, 0 = Sunday; names such as mon or monday. 7 is rejected.
Day of month and day of weekAND: a day must be in day_of_month, month_of_year and day_of_week. 0 0 1-7 * 1 is the first Monday of the month.
RangesReversed ranges wrap: hour 22-2 is 22, 23, 0, 1, 2. Steps apply to the expanded list.
Time zoneapp.conf.timezone; with none set (and enable_utc on, the default) Celery uses UTC.
Not supportedL, W, #, ?, @daily-style shortcuts.

The parser is a port of Celery 5.7’s crontab_parser. It was compared with Celery itself (crontab.from_string() and beat’s remaining_delta()) on 8,000 cases: which strings are accepted, and the next 12 runs (0 differences). Last checked 18 November 2026.

Watch the argument order of crontab()

The cron string is minute, hour, day of month, month, day of week, but crontab() takes minute, hour, day_of_week, day_of_month, month_of_year. crontab('0', '9', '1') is therefore 09:00 every Monday, not on the 1st. Use keyword arguments (the tester writes them for you) or crontab.from_string().

AND, not OR

Celery’s documentation says a day must be represented in all three day and month attributes. That makes 0 0 1-7 * 1 mean “the first Monday of the month”, which Unix cron cannot express, but it also means a crontab line copied from a Linux server that relied on OR now runs far less often.

Small parser surprises

  • crontab.from_string() splits on single spaces, so a double space raises “too many values to unpack”.
  • Names are looked up by their first three letters in every field, months first: mon in the minute field is 1, and jan in the day-of-week field is also 1 (Monday).
  • day_of_week='*/2' means days whose number is even (Sunday, Tuesday, Thursday, Saturday), not every second day.

Sources: Celery: Periodic Tasks · Celery: celery.schedules API · Celery source: schedules.py

Related: Daylight saving time checker · Crontab file checker · All platform tools

Common questions

Celery beat crontab FAQs.

Yes. Celery’s day_of_week runs 0-6 with Sunday = 0, and names such as sun or sunday also work. 7 is rejected as out of range.

AND. A run day must match day_of_month, month_of_year and day_of_week, so crontab(day_of_month='1-7', day_of_week=1) is the first Monday of each month.

The positional order of crontab() is minute, hour, day_of_week, day_of_month, month_of_year, so the third argument is the day of the week. Use keyword arguments or crontab.from_string().

The app’s timezone setting (app.conf.timezone). With no timezone set and enable_utc on (the default), Celery uses UTC.

Yes: crontab.from_string('0 9 * * 1-5'). It needs exactly five fields separated by single spaces.