- Knownframe
- CookDex
- Docs
- v2026.11.1
- Data maintenance tasks
Data maintenance tasks
The tasks that clean and audit recipes. data-maintenance runs most of them as stages in one run; the others run one job on their own. For a walk-through, see Data maintenance pipeline.
data-maintenance
Section titled “data-maintenance”| Option | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | true |
Preview changes without writing anything. |
backup_first |
boolean | true |
Create a Mealie backup before a live run. Hidden while dry_run=true. |
stages |
string list | all stages | Select stages: dedup, junk, names, parse, foods, units, categorize, yield, quality, audit. The retired labels, tools, taxonomy and cookbooks stages are skipped. |
confidence_threshold |
integer | 70 |
Ingredient parser NLP confidence percentage. Lower accepts more NLP results and reduces AI fallback. |
max_recipes |
integer | unset | Limit ingredient parsing when the parse stage runs. |
no_cache |
boolean | false |
Ignore the ingredient parser scan cache. |
strength |
string | cautious |
How sure the junk stage must be before deleting a page; see Junk filter strength. |
reason |
string | all categories | Limit junk filtering to one category. |
force_all |
boolean | false |
Normalize all names, not only unformatted names. |
provider |
string | configured default | Override AI provider for categorization: chatgpt, anthropic, or ollama. |
nutrition_sample |
integer | 200 |
Nutrition sample size for the quality stage. Not used when the database is connected (coverage is exact then). |
continue_on_error |
boolean | false |
Keep running later stages if one stage fails. |
apply_cleanups |
boolean | false |
Dangerous. Allows cleanup stages to write changes. Hidden while dry_run=true. |
Default stage order:
dedup -> junk -> names -> parse -> foods -> units -> categorize -> yield -> quality -> audit
The pipeline’s parse stage sends recipes to Mealie’s parsers; it doesn’t read ingredients in CookDex the way ingredient-parse does. For the faster reading, use Link ingredients as a step in an automation.
clean-recipes
Section titled “clean-recipes”Clean up the recipe list in Tools, and Review on the Library’s findings for pages that aren’t recipes, duplicates and messy names.
| Option | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | true |
Preview changes without writing anything. |
backup_first |
boolean | true |
Create a Mealie backup before a live run. Hidden while dry_run=true. |
run_dedup |
boolean | true |
Duplicate recipes: remove imported duplicates with the same source URL, keeping the best copy. |
run_junk |
boolean | true |
Pages that aren’t recipes: find pages that aren’t recipes. What it deletes and what it leaves for you depends on strength. |
strength |
string | cautious |
How sure before deleting a page: cautious, balanced or strong. See Junk filter strength. |
run_names |
boolean | true |
Messy names: normalize names derived from URL slugs. |
reason |
string | all categories | Limit junk filtering to one category. |
force_all |
boolean | false |
Normalize all recipe names, not only unformatted names. |
Junk filter strength
Section titled “Junk filter strength”The junk filter reads what a page says, not just its title and address. Pages with no amounts, no cooking steps and no servings or times, that read like prose, are recognized as about, contact and policy pages, trip and travel posts, stories and updates, or articles with no recipe in them, so “Our Week in Tuscany” or “Meet Jenn” are found even when nothing in the address gives them away. How sure before deleting a page decides what happens to them:
| Level | Deletes | Leaves for you to decide |
|---|---|---|
| Cautious (default) | Only pages with no ingredients and no steps, as before. | Everything else that looks off. |
| Balanced | Also about, contact and policy pages, and trip and story posts, with nothing of a recipe in them. | Pages with a little recipe-like text, and how-to and roundup pages. |
| Strong | Also those with a little recipe-like text, and how-to, roundup and similar pages with almost no recipe in them. | Anything it isn’t sure of. |
Real recipes, with ingredients and cooking steps, are kept at every level, including ones with a place or a trip in the name (“Tuscan Chicken”, “Paris-Brest”, “Road Trip Trail Mix”), very short ones, and ones whose steps read like a story. In testing against 90 about, contact, trip and story pages and 97 tricky real recipes, Strong deleted 88 of the pages and Balanced 65, and neither deleted a real recipe.
When Mealie imports a page without ingredients it adds a “1 Cup Flour” ingredient (and, without steps, a step about markdown). The junk filter recognizes that placeholder and ignores it, so such pages count as empty. Only that exact placeholder, standing alone, is ignored; a real recipe’s “1 cup flour” still counts.
What’s left for you shows on the Library as “…entries might not be recipes”, with Decide. The same choice is in automation steps for Clean up the recipe list; an automation that applies changes with Strong deletes those pages on its own, with copies kept in Recently deleted.
The first scan after updating to 2026.10.4 or later opens every recipe again, because the scan cache now keeps more about each one. Later scans only open recipes that changed.
Deleted recipes are kept
Section titled “Deleted recipes are kept”Before the junk filter or the duplicate finder deletes a recipe, CookDex saves a full copy, checks it, and only then asks Mealie to delete the recipe. If the copy can’t be saved, the recipe stays in Mealie and the run says why; that includes duplicates that only the database connection could otherwise delete. Copies are listed under Library → Recently deleted for 30 days, where each one can be restored. See Recently deleted.
Renames
Section titled “Renames”Mealie won’t give two recipes the same name. A new name that another recipe already has, and keeps, is never applied: the Library lists those apart, as “…cleaned-up names would match another recipe” (often the same dish imported twice), where you can give one a name of its own before applying. A live run, from Tools or an automation, skips them with the reason (“Another recipe is already called …”), applies the rest, and counts them as Skipped (name taken) in the summary. Of two renames that want the same new name, the first is applied.
Renames that pass names around go through in one run. When two recipes take each other’s names, one moves to a temporary name for a moment, the other takes its new name, then the first takes its own; three or more in a circle work the same way. A rename that waits on another, such as “Banana Bread Recipe” → “Banana Bread” while “Banana Bread” is renamed to something else, happens in the same run. If any step fails, they’re all put back as they were and the run says so; if even that fails, it says which recipe still has the temporary name.
slug-repair
Section titled “slug-repair”| Option | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | true |
Only list the recipes that would change. |
backup_first |
boolean | true |
Create a backup before repairing addresses. |
Live runs fix each recipe through Mealie’s API (saving its name with a trailing space and back, which makes Mealie regenerate the slug), or in one database transaction when the database is connected. Recipes whose name would take a slug another recipe already has are skipped and listed.
ingredient-parse
Section titled “ingredient-parse”Link ingredients in Tools, and Parse on the Library’s “ingredients that aren’t linked to foods” finding. It reads ingredient lines like “2 cups flour” and links each one to a quantity, a unit and a food in Mealie, so shopping lists and ingredient search work.
| Option | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | true |
Preview changes without writing anything. |
backup_first |
boolean | true |
Create a Mealie backup before a live run. Hidden while dry_run=true. |
max_recipes |
integer | unset | At most (recipes): limit parsing to at most N recipes. |
no_cache |
boolean | false |
Ignore the scan cache and reprocess all unparsed recipes. |
confidence_threshold |
integer | 70 |
Minimum confidence percentage before accepting a parse. Lines below it go to the next parser. |
parse_locally |
boolean | true |
Read ingredients in CookDex, under More options. Turn off to have Mealie read every recipe, as before 2026.10.2. |
ask_mealie_when_unsure |
boolean | true |
Ask Mealie’s parsers when unsure, under More options and in automation steps. Turn off to send recipes CookDex isn’t sure about straight to review without asking Mealie. Hidden when parse_locally is off. |
default_unit |
string | blank | Unit for counted items, under More options. Gives lines with an amount and a food but no unit, like “1 onion” or “3 eggs”, the unit you enter, for example whole. See Counted items. |
How it reads ingredients
Section titled “How it reads ingredients”By default CookDex reads the lines itself, with the same parsing library and the same food and unit matching that Mealie 3.29’s own parser uses. It loads your foods and units from Mealie once per run, then takes a few hundredths of a second per recipe. Asking Mealie instead takes about 8 seconds per recipe on a large library, because Mealie reloads its whole food list for every request, so a library with thousands of unlinked recipes used to take hours.
Recipes it isn’t sure about (below the confidence threshold) go to Mealie: first its brute-force parser, then its OpenAI parser if that’s set up in Mealie. Each of those requests is slow on a large library and rarely helps, so you can turn off Ask Mealie’s parsers when unsure; unsure recipes then go straight to review and Mealie gets no parse requests at all. A recipe no parser is sure about gets the Parser: Needs Review tag, and later runs skip it.
On Mealie 3.28 and older it reads lines the 3.29 way: a second measurement, like the “(42g)” in “3 tablespoons (42g) water”, stays in the note.
Inch marks parse with every parser: before a line is read, a " right after a number, as in 1 1" piece fresh ginger or 2 2x1" strips lemon zest, is read as “inch”, and the recipe keeps the line as written. Quoted words, as in 2 cups "00" flour, are left alone.
Counted items
Section titled “Counted items”A line like “1 onion” has an amount and a food but no unit, so Mealie shows it without one. Enter a unit in Unit for counted items, such as whole, and CookDex gives it to those lines. It uses the Mealie unit with that name, plural or abbreviation, and on a live run creates the unit if you don’t have one; a preview only says it would. Lines with no amount, like “salt”, and lines that already have a unit are left as they are. The run summary counts the lines that got the unit. Left blank, the default, nothing changes.
When Mealie doesn’t answer
Section titled “When Mealie doesn’t answer”If Mealie times out or can’t be reached while a recipe is being parsed, CookDex retries the request. A recipe that still gets no answer counts as failed: it isn’t tagged for review and is tried again next run. After 5 recipes in a row without an answer, the run stops rather than add load to a struggling Mealie; recipes it didn’t reach are tried again next run.
yield-normalize
Section titled “yield-normalize”Fill in servings in Tools. It fills in servings from a recipe’s yield text, such as “Makes 12 muffins”, and yield text from its servings. A recipe with neither has nothing to work from, so it needs servings set in Mealie. The Library lists those as missing servings: See recipes on that finding opens every one from your last scan, with a search box and a link that opens each recipe in Mealie.
| Option | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | true |
Preview changes without writing anything. |
backup_first |
boolean | true |
Create a backup before filling servings. |
reimport-recipes
Section titled “reimport-recipes”| Option | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | true |
Preview eligible recipes. |
backup_first |
boolean | true |
Create a Mealie backup before a live run. Hidden while dry_run=true. |
max_recipes |
integer | unset | Limit reimport to at most N recipes. |
workers |
integer | 2 |
Concurrent scrape workers, capped at 4. |
delay |
number | 0.5 |
Seconds between requests per worker. |
resume |
boolean | false |
Skip recipes in the durable completion checkpoint; previews do not overwrite it. |
slugs |
string | unset | Comma-separated recipe slugs to reimport. Leave blank for all eligible recipes. |
When invoking python -m cookdex.recipe_reimporter directly, writes require --apply; DRY_RUN=true still overrides that flag.
Reimport uses the Mealie API. When the database is connected and an older Mealie rejects an update with a 403 because of a slug mismatch, it repairs the slug and retries.
health-check
Section titled “health-check”| Option | Type | Default | Description |
|---|---|---|---|
scope_quality |
boolean | true |
Score recipe completeness for categories, tags, tools, ingredients, cook time, yield, and nutrition. |
scope_taxonomy |
boolean | true |
Scan taxonomy for unused entries, duplicate names, and recipes missing categories or tags. |
nutrition_sample |
integer | 200 |
Nutrition sample size. Not used when the database is connected (coverage is exact then). |
health-check is read-only and does not expose a dry_run option.
Each scan keeps the full list of recipes missing servings, a category or linked ingredients, not only a sample, so the Library’s findings can show every one. Scans from before 2026.11.1 don’t have the list; run a new one. When the scan can find your Mealie group, each recipe links to its page in Mealie; when it can’t, the list shows names only.