VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

The Gold Standard of Queueing Theory | Setup Cancellation, Half-Started Service and Abort Costs

Find your next learning step

A queue can disappear while its server is still becoming ready. The next decision is not simply on or off: cancel, pause or finish each preserves a different amount of work and creates a different delay.

Open the chapter contents · Queueing Theory root · Gold Standard of Education · How X Works

Chapter contents

Choose the route closest to the question, or read from Chapter 1 for the complete argument. The chapters remain open on the page; these grouped routes are an index.

Route 1 · Define cancellation states
Route 2 · Work the abort ledger
Route 3 · Test gaps and congestion
Route 4 · Check limits and evidence
Route 5 · Ask and continue

CHAPTER 1 OF 12 · DEFINE CANCELLATION STATES

1. Decide what can still be cancelled

A server can be off, closing down, setting up, ready, busy or failing. “Cancel the setup” makes sense only when the transition has not crossed an irreversible point. A software worker downloading an image may stop and discard partial work. A furnace already heating a batch may have safety and material costs that make reversal slower than completion.

Model the state before choosing the rule. Let setup require s time units. If cancellation happens after x units, name the recoverable fraction, the restart rule and any abort cost. A policy that treats all x as recoverable silently assumes away the half-started work.

Top · Contents · Next

CHAPTER 2 OF 12 · DEFINE CANCELLATION STATES

2. Separate cancellation from interruption

Cancellation discards the current setup and returns the server to an off or closing state. Interruption pauses the setup and later resumes from the saved state. Completion continues the setup even after the triggering queue disappears. These are three different state transitions.

Action after the queue emptiesNext arrival facesWhat must be recorded
cancel and restarta fresh setupabort point and discarded work
pause and resumeremaining setupdurable progress and resume penalty
finish setupa ready serverready-idle duration and energy
A single word such as “interruptible” is not enough unless the restart state is explicit.

Top · Contents · Previous · Next

CHAPTER 3 OF 12 · WORK THE ABORT LEDGER

3. Work a half-started setup ledger

Suppose setup takes 8 minutes, costs 16 energy units, and accumulates linearly. Job A arrives at minute 0 and leaves at minute 3. Job B arrives at minute 6. Service itself takes 2 minutes.

Under cancel-and-restart, three minutes of setup are discarded. B triggers a fresh setup at minute 6, service starts at 14 and ends at 16. The server spends 11 setup-minutes and 22 setup-energy units across the two attempts.

Under finish-and-hold, the first setup ends at minute 8. B is already waiting, so service runs from 8 to 10. The server spends 8 setup-minutes and 16 energy units. In this trace, cancellation saves no useful off time and makes B wait longer.

PolicyDiscarded setupB completionSetup effort charged
cancel and restart3 minminute 1622 energy units
finish and hold0 minminute 1016 energy units
pause at 3, resume at 60 minminute 1316 units plus resume cost
Original ledger; the comparison changes when the gap, abort cost or readiness cost changes.

Top · Contents · Previous · Next

CHAPTER 4 OF 12 · WORK THE ABORT LEDGER

4. Put abort cost beside setup cost

Aborting can consume a fixed cleanup cost, a progress-dependent loss, or both. A useful accounting identity is total transition cost = completed setup effort + discarded effort + cleanup + resume/restart overhead + ready-idle cost. Leaving out discarded effort rewards a policy for work it actually wasted.

Costs need not be money. They can be energy, wear, cache churn, material scrap, operator attention or risk exposure. Keep the units visible and avoid adding unlike quantities until a defensible conversion has been chosen.

Top · Contents · Previous · Next

CHAPTER 5 OF 12 · WORK THE ABORT LEDGER

5. Mark the point of no return

Some setups have a cancellable prefix and a non-cancellable tail. Call the boundary x*. Before x*, aborting returns to off. After x*, the controller must finish, or the abort state has a different time and cost law.

This boundary can be physical or contractual: a valve has opened, a cloud instance has been billed for the hour, a sterilisation cycle cannot safely stop, or a transaction has committed. The optimal rule may therefore be “cancel early, finish late,” not a universal cancel-or-finish choice.

Top · Contents · Previous · Next

CHAPTER 6 OF 12 · TEST GAPS AND CONGESTION

6. Changed context: stretch the empty gap

Keep the first trace but move Job B from minute 6 to minute 30. Finish-and-hold completes setup at 8 and leaves the server ready for 22 minutes. If ready-idle costs 1 unit per minute, it adds 22 units before B is served at minute 32.

Cancel-and-restart discards three setup-minutes but remains off until 30; B then completes at 40. The energy ledger may now favour cancellation even though the delay ledger favours readiness. The transfer check is the trade-off: changing only the empty-gap duration can reverse the preferred policy.

Top · Contents · Previous · Next

CHAPTER 7 OF 12 · TEST GAPS AND CONGESTION

7. Add arrivals during close-down carefully

Close-down and setup are not interchangeable. Under an interruptible close-down policy, a new arrival may stop the shutdown and restore service without a fresh setup. Under an insusceptible policy, shutdown continues and the arrival waits through the next setup.

Sun and colleagues’ queueing work distinguishes interruptible and insusceptible setup/closedown policies. Operational logs should therefore retain the transition direction. “Server unavailable” loses the difference between moving toward off and moving toward ready.

Top · Contents · Previous · Next

CHAPTER 8 OF 12 · TEST GAPS AND CONGESTION

8. Test congestion, not one isolated cycle

A single-cycle ledger explains mechanics, but repeated cancellations can create thrashing. If arrivals repeatedly appear just after cancellation, the system pays setup effort without producing service. Hysteresis, a minimum-on time, a minimum-off time or a cancellation grace window may reduce that loop.

Test the policy under clustered, sparse and alternating arrivals. Report queue area, completion percentiles, setup attempts per completed busy period, discarded progress, aborts beyond x*, and ready-idle time. Mean waiting alone cannot expose transition waste.

Top · Contents · Previous · Next

CHAPTER 9 OF 12 · CHECK LIMITS AND EVIDENCE

9. Limits and common misconceptions

The worked example assumes deterministic setup, exact progress measurement, one server and no priority classes. Real setups may have random duration, phase-dependent energy and safety constraints. A paused setup may decay, so resumption is not always “continue from x.”

Cancellation does not mean the queued job is cancelled. Setup effort, customer requests and service attempts are separate objects. Nor does interruptible imply costless: an interruptible transition may still carry cleanup, wear or lost progress.

Top · Contents · Previous · Next

CHAPTER 10 OF 12 · CHECK LIMITS AND EVIDENCE

10. Build an evidence check

Log every off, close-down, setup, pause, abort, ready and busy transition with timestamps. Record queue length and oldest age at the decision, progress x, point-of-no-return status, reason code, predicted remaining setup, realised restart cost and the counterfactual finish time.

Replay the same traces under cancel, pause and finish rules. Compare customer delay with transition effort and check whether one group repeatedly pays the abort penalty. If the decision uses forecasts, preserve forecast versions so later evaluation does not substitute information unavailable at the time.

Top · Contents · Previous · Next

CHAPTER 11 OF 12 · ASK AND CONTINUE

11. Questions readers should ask

Is a cancelled setup always wasted?

No. Some work may be reusable, cached or safely checkpointed. The model must say what survives.

Why not always finish once setup starts?

A long empty gap can make readiness expensive. Finishing also may be unsafe or impossible after the triggering demand disappears.

Where should the cancellation threshold sit?

It depends on remaining setup, abort loss, expected next arrival, delay cost and the point of no return. Estimate it from traces; do not infer it from setup duration alone.

Top · Contents · Previous · Next

CHAPTER 12 OF 12 · ASK AND CONTINUE

12. Continue through verified routes

Begin with the Queueing Theory root, Gold Standard of Education and How X Works. Continue through Setup Times, Exceptional First Service and Warm-Start Bias, N-Policies, Delayed Shutdown and Setup Amortisation and Warm Pools, Pre-Provisioning and the Cost of Idle Readiness.

Primary routes include Sun et al.’s interruptible and insusceptible setup/closedown policies, the M/G/1 system with N and T policy, and Heyman’s T-policy for the M/G/1 queue. The two ledgers above are original teaching examples.

Top · Contents · Previous · How X Works