Food Quality Vault learning network
Food Quality VaultLearning Hub
Quick Answer

In brief: Explains how the order of production runs limits allergen carryover on shared lines. Runs move from allergen-free to minor allergens such as milk or soy and end with the worst case, for example peanuts or tree nuts, while campaigns group identical formulations. A backward step needs a validated full wet clean, and ERP or MES scheduling rules can lock out a non-compliant sequence.

Home / Pillar 8 / Module 8.4

Module 8.4: Production Scheduling and Worst-Case Allergen Sequencing

Non-allergen to allergen sequencing, campaign scheduling, changeover minimization, and thorough sanitation triggers.

By Nair Ajeet, Lead Author, Food Quality Vault Editorial Team · · Editorial governance

Food Quality Vault Updated October 2026 Reference context: SQF & Scheduling

What you will learn: Production Scheduling

On shared equipment, the order in which products are made decides how many high-risk changeovers a plant must perform. Module 6.5 introduced the idea of sequencing. This module shows how to build a schedule from the allergen matrix, how to count and minimise full cleans with a worked example, how to define the worst-case product, how to balance campaign length against the cost of changeover and what to do when commercial pressure disrupts the plan.

1. The scheduling problem

Every changeover between products has a cost: lost production time, water, chemicals, labour and testing. It also has a risk, because every changeover is a chance for residue to be carried over. The scheduler’s job is to meet customer orders while keeping the number of high-risk changeovers as low as possible.

A changeover is high-risk when the next product lacks an allergen present in the one before. Going from a product with milk to another with milk is low-risk. Going from a product with milk to one without is high-risk and needs a full allergen clean. Going from allergen-free to anything is low-risk.

2. The allergen matrix as the scheduling tool

The matrix lists every product on a line and its allergens. A scheduler can read from it which transitions need a full clean. If the rule is that a full clean is needed whenever the next product omits any allergen contained in the previous one, the matrix can be turned into a table of changeover types: none, partial or full. Many plants build this into planning software or a simple spreadsheet, and use it to test a proposed sequence before it is released.

Figure 8.4 — Worst-Case Allergen Sequencing, Production Campaign, and Sanitation Trigger Workflow

1. Allergen-Free Initial Clean Run 2. Minor Allergen Milk / Soy Campaign 3. Worst-Case Peanuts / Tree Nuts 4. Full Sanitation Validated CIP & Swab

3. A worked example

Take five products on one line: A is allergen-free, B contains milk, C contains milk and soy, D contains peanut, E is allergen-free. A first plan runs them in the order of the customer orders: A, B, C, D, E.

  • A to B: B adds milk to a clean line. No full clean needed.
  • B to C: C contains milk and adds soy. No full clean.
  • C to D: D lacks milk and soy. Full clean needed.
  • D to E: E is allergen-free. Full clean needed.
  • Then E back to the start of the next cycle: no clean.

This sequence has two full cleans per cycle. Now reorder to E, A, B, C, D and finish the cycle with a full clean after D. The allergen-free products run first on a cleaned line, then milk is added, then milk and soy, then peanut. Only one full clean is needed per cycle, after the peanut product. If a full clean takes four hours, the saving of one clean per cycle is four hours of production, or 8 to 10 percent of a 40-hour week, as well as a lower risk of error.

4. Choosing the worst-case product

Validation of a cleaning procedure uses the worst-case product, the one that is hardest to clean off or most dangerous if carried over. The choice should be reasoned and documented. Consider the allergen potency, since peanut and sesame are potent at very low doses, the physical form, since fine powders, sticky pastes and oily products cling to surfaces, the solubility, which affects how easily it rinses out, and the amount of protein. A fine, oily nut paste is a typical worst case. A thin, water-soluble liquid is not.

Once the worst case is validated, the procedure may be applied to easier products on the same equipment, provided that the cleaning method, the equipment and the allergen type are comparable. Document the grouping and the logic.

5. Campaign length and changeover cost

Longer campaigns mean fewer changeovers, but they also build up stock, increase working capital and make the plant less responsive to customers. Shorter campaigns do the opposite. The best length balances the cost of changeover against the cost of holding stock. A simple rule is to compare the changeover cost with the carrying cost of the extra inventory, and choose the point at which the total is lowest.

Risk adds to the calculation. A schedule that depends on a very large number of full cleans in a week, or on cleaning at night with low supervision, puts more load on people. Reducing the number of full cleans reduces the number of chances for error.

6. When the schedule breaks

Rush orders, machine breakdowns and shortages disrupt plans. The plant should have rules that allow changes without reducing safety. A change to the sequence must be approved by quality, who check whether it creates a high-risk changeover and, if so, require a full clean and verification. The allergen matrix and the schedule are the reference. Operators should know that they can refuse to run a product out of sequence without approval, and supervisors should not be pressed to do so.

  • Write a rule: no change of sequence without a quality check of the changeover type.
  • Use a visible board or system that shows the next product and the required clean.
  • Track the number of out-of-sequence changes and the reasons.
  • Include allergen sequencing in the training of planners, not only operators.

Example scenario (illustrative)

A planner moves a rush order for an allergen-free product to follow a sesame product to meet a delivery deadline. The operator notes that it is out of sequence and calls quality. The changeover is classed as high-risk, a full clean and an allergen swab test are required and the planner is told that the saving of an hour is not worth the risk. The order is moved to the start of the next shift after a full clean. The planner later adds a note to the planning tool that shows the changeover type for each pair of products.

7. Scheduling tools and data

Spreadsheets work for a small plant, but larger operations benefit from planning software that holds the allergen matrix and the changeover rules. Such systems can propose sequences, flag high-risk changeovers and block a schedule that breaks a rule. Whatever the tool, the data must be right: the matrix, the cleaning times and the product list must be kept current, and someone must own them. Review the schedule against the actual record each month, to see how often plans were broken and why.

8. Training planners and supervisors

Planners often work apart from the production floor, and they may not see the cost of an extra changeover in risk and effort. Include them in allergen training, take them on a changeover walk-through and show them the swab results from a changeover that failed. Planners who understand the reason for the sequence are far more likely to protect it when an urgent order arrives.

Key takeaways: Production Scheduling and Worst-Case Allergen Sequencing

Sequence products so allergen-free items run first and the most complex allergen products last, with one full clean at the end. Use the matrix to count changeover types, define worst-case products on evidence, balance campaign length against cost and control changes to the schedule through quality.

Frequently Asked Questions

When is a changeover high-risk?

When the next product lacks an allergen present in the previous one, so residue could carry over into a product not labelled for it.

How does sequencing reduce full cleans?

By running allergen-free products first and adding allergens in increasing complexity, so that only one full clean is needed at the end of the cycle.

What makes a worst-case product for cleaning validation?

A potent allergen in a form that is hard to remove, such as a fine, oily or sticky material with high protein content.

Who should approve a change to the production schedule?

Quality, who check whether the change creates a high-risk changeover that needs a full clean and verification.

Lesson details: Production Scheduling

Facts about this module
MeasureDetail
PillarPillar 8: Allergen Management & Control
PositionModule 8.4 of 10 in this pillar
Reading timeabout 7 minutes at 200 words per minute
Practice quiz120 questions in four tiers; you can test yourself after reading
Last updated

Key terms: Production Scheduling and Worst-Case Allergen Sequencing

Worst-case allergen sequencing
Running products from allergen-free, to minor allergens, to the hardest allergen last, such as peanut, to limit cross-contact.
Campaign manufacturing
Grouping long runs of identical allergen formulations together so fewer complex changeovers and cleanings are needed.
ERP lockout
A software block in the production schedule that stops an allergen-free run after a peanut run without a validated sanitation sign-off.

Sources and further reading

Nair Ajeet, Lead Author at Food Quality VaultNair Ajeet, author profile

About the author

Nair Ajeet · Lead Author, Food Quality Vault Editorial Team

Lead QC & ISO Certification Planner with more than 10 years in food safety and quality control. MSc Food Science, ASQ Certified Food Safety and Quality Auditor (CFSQA), HACCP Level 4. Experience in fresh-produce inspection, receiving QC, warehouse quality management and production QC. Read the full profile · LinkedIn

Technical Evidence & Practical Application

  1. FDA — Food Allergies and Major Food Allergens
  2. EUR-Lex — Regulation (EU) No 1169/2011 on food information to consumers
  3. FDA — FASTER Act: Sesame as the Ninth Major Food Allergen