Skip to content
CookDex docs
You're reading the docs for CookDex v2026.11.4, an earlier release. See this page in the latest docs.

Scheduling and automations

Jobs run on a schedule as steps of an automation, which runs one or several jobs in order. Set them up on the Automations page, or click Run automatically… on a job in Tools, which makes a one-step automation that runs every day or every week. For routine monitoring, turn on Check the library every week, which only previews, or schedule Check library health for a read-only report.

Four ready-made automations ship switched off: Back up Mealie every night, Check the library every week, Organize new recipes every week and Import new recipes every week. Turn one on as it is, or click Edit to change it. Preview now runs an automation once as a preview, and Run now runs it as set up.

The Automations page with the ready-made automations, switched off, each with its schedule, its numbered steps, a Preview only or Applies changes badge, and Preview now, Run now and Edit buttons.

Steps take the same choices as the job in Tools, such as How sure before deleting a page for Clean up the recipe list and Ask Mealie’s parsers when unsure for Link ingredients. An automation that applies changes with Strong deletes the pages it’s sure about on its own; each is kept in Recently deleted so you can restore it.

An automation that applies changes says Applies changes; one that only previews says Preview only. Scheduled Discover runs, and automations with a Discover step such as Import new recipes every week, are skipped, with a note saying why, until an owner accepts Discover’s responsible-use terms. Recipes left with Leave as is are skipped by scheduled cleanups too.

A scheduled run waits its turn like any other job (see When jobs wait), and Stop in its run details ends it.

Schedule kinds:

Kind Required fields Notes
interval seconds Runs repeatedly. Optional start_at, end_at, and run_if_missed values are stored in UTC.
once run_at Runs one time in the future. Optional run_if_missed controls restored missed runs.
calendar every (day or week), time (HH:MM), weekday (0 = Sunday), timezone A wall-clock time in a time zone, so it follows daylight saving. Used by automations.

The web UI stores schedules through its API (POST /schedules), relative to /cookdex/api/v1 by default, or your WEB_BASE_PATH. POST /schedules accepts interval and once schedules; calendar schedules are made by automations.

An automation is an ordered list of steps (a task and its options) with settings for the whole run and a trigger. It’s stored by the web UI and run by the hidden workflow task (python -m cookdex.workflow_runner), which builds every step up front, then runs them one after another in a single run with one log and one set of results.

Field Values Notes
steps 1 to 12 {task_id, options} Options are the task’s own, without dry_run, backup_first or apply_cleanups; those come from the automation.
mode preview, apply Preview runs every step as a dry run.
backup_first boolean With apply, one pre-change backup is made before the first step instead of one per step.
stop_on_error boolean Stop at the first step that fails, or carry on with the rest.
trigger manual, calendar (every: day/week, time, weekday 0 = Sunday, timezone), interval (seconds, start_at), once (run_at) Enabled automations with a time-based trigger own one schedule for the workflow task. Calendar triggers keep their wall-clock time across daylight-saving changes.

The ready-made automations ship switched off. Plain task schedules, including older ones and ones made through POST /schedules, are turned into one-step automations with the same timing, options and approval.