Skip to content

When should my application stop accepting new generation commands during an outage?

Stop admitting new generation commands when your application cannot durably preserve approved intent or enforce its admission controls. Keep read-only task views available where possible. A temporary AISwapLab outage may justify pausing dispatch, but it does not automatically make every part of your application unready.

OPERATE AN API INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Define admission prerequisites; Split service roles; Test partial degradation.
Workflow diagram: Define admission prerequisites → Split service roles → Test partial degradation. Read the article for evidence and limits.

Different routes have different promises

A task-history page can remain useful while new submissions are paused. Conversely, an apparently responsive frontend should not accept work if its command database is unavailable. Readiness should follow the promise made by each route or worker role.

What to do next

  1. 01

    Define admission prerequisites

    List the local dependencies required to save commands, apply authorization and enforce limits. Decide whether you can safely queue during upstream downtime, and impose a bounded backlog if you offer that behavior.

  2. 02

    Split service roles

    Keep history and download access separate from new-command admission where the architecture allows it. Workers can be dispatch-unready while the web application remains able to explain existing tasks and show previously delivered assets.

  3. 03

    Test partial degradation

    Disable the command database, the queue and the upstream dependency separately. Confirm each failure blocks only operations whose promises cannot be met, with clear user messages and no silently accepted unsaved action.

A concrete example

Illustrative example: a queue outage leaves the application's database and outbox working. Under a bounded saved-command policy it can accept a limited backlog. If the database fails instead, it refuses new commands because it cannot preserve approval durably.

Before you call it ready

  • Readiness matches the route's promise.
  • Backlogs are explicitly bounded.
  • Existing task views remain available when safe.

When to stop or choose another method

Stop returning Action saved when the application cannot durably record it, even if the frontend and health endpoint are responsive.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation