Skip to content
CookDex 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. Run now, on an automation that applies changes, runs it as set up; it asks first, since its steps change Mealie right then.

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.

Each automation’s card says how often it really runs, such as “Every day at 3:00 AM”, “Every 5 minutes”, “Every 90 minutes” or “Every 2 days”.

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

Under When it runs, Edit offers Only when I run it, Every day, Every week, Every few hours (1 to 23) and Once.

  • At most every 5 minutes. CookDex refuses a shorter interval with “Run at most every 5 minutes.”
  • Editing keeps the timing. Saving an automation changes when it runs only if you change the timing. Changing its name or steps leaves it exactly as it was.
  • Intervals the form doesn’t list. An automation that runs on an interval the choices don’t offer, such as every 5 minutes, every 90 minutes or every 2 days, shows it first in the list as “Keep every 5 minutes” (and so on). Leave it selected to keep that interval.
  • Switching on. An interval automation you switch on first runs one interval from then: one that runs every 90 minutes starts 90 minutes later.

An automation that applies changes needs an owner’s approval before it runs on its own. When an owner saves or switches on such an automation, CookDex asks “Let … change Mealie on its own each time it runs?”; Allow approves it.

  • Approval covers the automation’s exact steps. When its steps or settings change, it needs an owner’s approval again. An owner is asked again on saving. When an editor makes the change, the card says “Its approval to change Mealie was withdrawn, so it won’t run on its own” until an owner edits and saves it, and its scheduled runs are skipped until then.
  • Backups count as changes. A backup writes to Mealie’s server, so an automation with a Back up Mealie step needs approval too, and an editor can’t start a backup an owner hasn’t approved. For an editor without approval, Run now and Save automation on Back up Mealie in Tools are switched off and say “An owner has to approve changes from this job.”
  • Preview automations need no approval. A preview automation skips steps that can’t be previewed, such as a backup, and says so.

See Safety policies.

Updating from 2026.11.4 or earlier needs nothing from you. CookDex changes some older automations on the first start and puts a note on each one’s card. An owner can Dismiss the note; editing the automation clears it too.

What you had What CookDex did Note on the card
An automation made from an old Data Maintenance schedule It no longer deletes, renames or merges. It does less than before, so it stays on and approved. “CookDex changed this automation so it no longer deletes, renames or merges. The rest of its maintenance still runs.”
A schedule that ran more often than every 5 minutes It now runs every 5 minutes and stays on. “CookDex slowed this automation to every 5 minutes, the shortest gap it allows now.”
An automation or schedule that only backs up It’s approved once, so it keeps running. None

To have a changed automation delete duplicates, rename or merge again, add those jobs as steps of an automation yourself and approve it; see Data maintenance.

Schedule kinds:

Kind Required fields Notes
interval seconds (300 or more) Runs repeatedly, at most every 5 minutes. 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. An older schedule with no start time keeps counting from its last run; a new automation needs a start time.