Skip to content
CookDex docs

Task reference

Every CookDex task, with its options, is on one of the pages below. In the web UI, tasks are the jobs on the Tools page, and each job’s sheet links to its section here (More about this job). To run jobs on a schedule, see Scheduling and automations; for what a job may change, see Safety policies.

Task ID In Tools Purpose
clean-recipes Clean up the recipe list Remove duplicate source URLs, filter junk content, and normalize messy import names.
slug-repair Fix recipe web addresses Find recipes whose slug no longer matches their name and fix them.
tag-categorize Tag and categorize Assign categories, tags, and tools with rule matching and optional AI.
ingredient-parse Link ingredients Parse raw ingredient text into structured food, unit, and quantity fields.
cleanup-duplicates Merge duplicate foods, units and tags Merge duplicate food, unit, tag, and category entries.
yield-normalize Fill in servings Fill missing yield text or parse yield text into numeric servings.
recipe-dredger Import from your sources Crawl configured recipe sites, verify recipe pages, filter by language, and import verified URLs into Mealie.
reimport-recipes Refresh recipes from their websites Re-scrape source URLs while preserving recipe identity, favorites, and organization.
health-check Check library health Run read-only recipe quality and taxonomy audits.
mealie-backup Back up Mealie Create a Mealie backup through the admin API and optionally delete older backups this task made.
data-maintenance Not shown The older staged pipeline, replaced by automations. Schedules and automations that already use it keep running.

Tools groups the jobs by what you want to get done: Tidy up recipes, Organize, Bring in recipes, and Check and keep safe. Each job shows the one or two choices most people need; every other option is under More options. Classic tools, linked at the bottom of Tools, lists every job with all its options, schedules and the raw log on one screen, grouped the older way: Data Pipeline, Actions, Organizers and Audits.

Every task works through Mealie’s API. With a database connection saved in Settings → Faster database access (MEALIE_DB_URL), tasks that can use it do so on their own. A job that can’t use the database finishes through the API and says why, under Worth a look in its run details and in Settings; see When a job can’t use the database. There is no per-task switch. The --use-db flag on the command-line modules still forces it.

Open a job in Tools and choose:

  • Preview: shows what would change and changes nothing. From the preview’s run details, Apply these changes makes the same changes. For jobs whose changes can be picked one by one, Review changes lists each change instead: untick what you want to keep (Select all and Select none work on a whole list) and apply the rest.
  • Apply now…: makes the changes right away, without a review step. Back up Mealie first (recommended) is ticked by default. If an owner hasn’t approved changes from that job, the button is disabled and says so.
  • Run check or Run now: for jobs that only look (Check library health) or do one thing (Back up Mealie).
  • Run automatically…: turns the job into an automation that runs every day or every week.

The Tools page: jobs grouped under Tidy up recipes, Organize and Bring in recipes, each card with an icon, a short description and a Preview first badge.

Select a run in Recent activity (on Tools, the Library and other pages) to open its details. The status says Waiting to start, Running, Finished, Finished with a warning, Didn’t finish or Stopped, and the line under the title says what kind of run it is: Preview, Applying changes while a live run is queued or running, Applied changes once it finished, or Live run for one that failed or was stopped, since only some of its changes may have gone through.

A run that finished but didn’t fully succeed says Finished with a warning, with the reason, in Recent activity, its details, Tools and the notice when it ends; the status pill in its details reads Needs attention. That covers warnings in its log, changes it skipped or couldn’t make, and recipes the AI couldn’t classify. A run that logged errors shows as failed, even if the job itself ended cleanly. A run that recovered, such as one whose AI answer was retried and then read, isn’t marked failed.

Run details for a Clean up the recipe list preview with a Needs attention pill beside Technical output. A banner says there’s 1 warning in the log: 17 new names would repeat another recipe’s name, and the review leaves them unticked. Below are the counts for duplicates, pages that aren’t recipes and names to clean up, and the same warning under Worth a look.

Technical output, at the top, opens the job’s log. It updates while the job runs and shows each stage and summary as tables; Raw text switches to the plain log, and Copy log and Download save it. You can close the details at any time; the job keeps going.

Every running job has a Stop button where you see it: in run details, as Stop scan while the Library scans, and on Discover’s import banner. CookDex asks once first. A job stopped part-way keeps the changes it already made, and its run says “Stopped while running. Changes it made before then stay.” A job stopped before it started changed nothing. Stopping a job while its Mealie backup runs ends the backup, and the job doesn’t start.

Long jobs, such as Link ingredients or a Library scan, run one at a time. Quick changes from Organize, like deleting tags no recipe uses or adding new entries, run beside a long job instead of waiting for it, unless they touch what the long job is changing. For example, with Link ingredients running, deleting an unused tag goes straight through, but deleting the Parser: Needs Review tag waits. Organize changes that make a backup first count as long jobs.

A run that hasn’t started says what it’s waiting for, such as “Waiting for Ingredient Parser (142 of 4,397) to finish”, in run details, Recent activity, the Library’s scan progress and Organize.

Run details for a Tag and categorize preview, marked Waiting to start, that says “Waiting for Ingredient Parser (34 of 325) to finish…”, with Technical output and Stop buttons, over the Tools page.

Link ingredients, Tag and categorize (with AI) and Refresh recipes from their websites can be limited to at most a number of recipes. Since 2026.12.1 a limited run takes recipes in name order, not newest first: CookDex reads the recipe list from Mealie sorted by each recipe’s web address, which follows its name. Later limited runs still reach the rest, because recipes a run finished drop out of the next one.

CookDex sends Mealie at most 8 requests at a time, counting all running jobs and the pages you have open (Organize’s lists, the overview, and connection and status checks). Two of them are kept for quick changes and page loads, so those don’t wait behind a long job. If every slot is busy, a page’s request waits at most 2 seconds and then goes ahead anyway, so a page is never stuck behind a long job. To change the limit, open Settings → Updates and runs, click 1 more setting, and set Requests to Mealie at once (1 to 32). Lower it if Mealie slows down while jobs run.

Runtime settings are managed through GET /settings and PUT /settings.

  • Non-secret values are stored in the app state database.
  • Secret values are encrypted at rest.
  • Task runs receive the effective runtime environment built from the settings catalog.
  • .env is only for container settings (port, base path, HTTPS, headless bootstrap). On first start, older .env values for catalog settings are copied into Settings once, and the Settings page is the source of truth from then on.

Settings refuses a value jobs can’t use and says why, instead of saving it:

  • a number that isn’t a number or is out of range, for example “Requests to Mealie at once (MEALIE_MAX_PARALLEL_REQUESTS) must be a whole number from 1 to 32.”;
  • an address that isn’t http or https with a host name, for example “Mealie address (MEALIE_URL): URL must use http or https.”;
  • a choice outside its list, such as a language or a yes/no value: “… must be one of: …”.

Values saved by an earlier version keep working. Pasted keys are trimmed of stray spaces when saved. The connection tests in Settings (Test Mealie, the AI tests and the database’s Test connection) say why they failed, such as an address that didn’t answer or a login that was refused.

When CookDex has copied values from your compose file, including the older MEALIE_BASE_URL and MEALIE_API_TOKEN, Settings shows one note at the top saying what it copied and that you can delete those lines. Click Got it to hide it.

Main setting groups:

Group Examples
Connection MEALIE_URL, MEALIE_API_KEY
AI CATEGORIZER_PROVIDER, OPENAI_API_KEY, OPENAI_BASE_URL, ANTHROPIC_API_KEY, OLLAMA_URL, model settings; see AI providers
Dredger DREDGER_TARGET_LANGUAGE, DREDGER_CRAWL_DELAY, DREDGER_CACHE_EXPIRY_DAYS
Faster database access MEALIE_DB_URL, optional SSH settings (MEALIE_DB_SSH_HOST, _USER, _KEY)
Runner MAX_RUN_DURATION_SECONDS, MEALIE_BACKUP_TIMEOUT_MINUTES, DELETED_RECIPES_KEEP_DAYS, MEALIE_MAX_PARALLEL_REQUESTS

Every setting is editable in Settings, which is also the complete reference: each field shows its group, default, and description. A few that are easy to miss:

Setting Default Purpose
MEALIE_BACKUP_TIMEOUT_MINUTES 30 How long to wait for Mealie to finish a backup (Wait for a Mealie backup), up to 240 minutes. It was 15 before 2026.10.1; a value you saved yourself stays.
DELETED_RECIPES_KEEP_DAYS 30 Keep deleted recipes for (days): how long copies of recipes the cleanup deleted stay in Recently deleted, 1 to 3650.
MEALIE_MAX_PARALLEL_REQUESTS 8 Requests to Mealie at once; see Requests to Mealie.
UPDATE_CHECK_ENABLED true Check GitHub for releases on startup and about daily. Disabled means no update request. Only the app version is sent; GitHub sees the server network address. Failures show no banner.
AI_BATCH_HEARTBEAT_SECONDS 30 Seconds between progress messages while an AI batch is in flight. Set 0 to disable.
OLLAMA_REQUEST_TIMEOUT 300 Seconds to wait for each Ollama request before retrying.
OLLAMA_NUM_THREAD 4 CPU threads used by Ollama generation. Raise it if the host has cores to spare.

A job run as a module (python -m cookdex.…) previews unless it’s given --apply or DRY_RUN=false. When it previews only because it was given neither, it says so when it starts and when it ends:

[info] Preview only: neither --apply nor DRY_RUN was given, so nothing is changed. Add --apply (or set DRY_RUN=false) to write the changes.

DRY_RUN=true and --dry-run always keep a preview. The old variable names MEALIE_BASE_URL and MEALIE_API_TOKEN aren’t read on the command line; use MEALIE_URL and MEALIE_API_KEY. Jobs started from the web app are unchanged.

The web UI keeps the most recent 500 runs. Older run records are pruned by a periodic housekeeping job, along with their log entries; task log files are rotated separately by the runner. Export anything you need to retain long-term before it ages out.