Back to the blog Security & Reliability

Can You Put Your Self-Hosted App Into Maintenance Mode Safely? A Practical Test Plan

Maintenance mode can block some requests while leaving jobs, integrations, or existing sessions active. Test the full behavior before relying on it for an update.

Administrator reviewing a maintenance-mode test plan for an application and its connected services

Treat maintenance mode as behavior to verify

A maintenance switch can make a site look unavailable without stopping every way data changes. Browser requests, API calls, active sessions, scheduled work, and incoming integrations may follow different rules. Some actions may be blocked, some may wait, and some may still run.

The goal is not simply to confirm that a notice appears. Before relying on self-hosted application maintenance mode, establish what it blocks, what remains available, what happens to work that arrives during the window, and how you will confirm normal service has resumed.

  • Use a test environment where practical, or a controlled window with a rollback plan.
  • Test the application version and configuration you intend to maintain; behavior can depend on implementation and settings.
  • Record expected outcomes before testing so that a blocked, queued, or rejected action is distinguishable from an unexpected failure.
Treat maintenance mode as behavior to verify

Define the window and what must not be interrupted

List the work that could be affected before choosing a start time. Include routine user activity as well as business-critical actions that arrive from other systems. Think about the cost of a failed or delayed action, not just whether the application is reachable.

Agree on who can authorize the window, who will monitor it, and who can decide to stop or roll back the change. Set a clear end condition based on verified workflows, rather than assuming maintenance is complete as soon as the mode is switched off.

  • Identify critical user actions, such as creating or updating records, approving work, and completing transactions.
  • List API clients, webhooks, push notifications, scheduled tasks, and other integrations that may send or receive data.
  • Decide which read-only pages and operational endpoints, if any, must remain available.
  • Set the acceptable recovery outcome: which workflows must work again, and how you will check that no important work is missing.
Define the window and what must not be interrupted

Check the application’s documented behavior

Read the maintenance-mode documentation for the exact application and deployment you operate. Look for which paths are gated, whether exceptions exist, how read-only mode is defined, whether running requests are allowed to finish, and what happens to background workers and incoming integrations.

Do not assume a single switch covers every route. An application may leave health or operational paths accessible, allow explicitly configured exceptions, or treat browser pages and API requests differently. Likewise, a read-only option may block common mutation methods but still permit writes triggered by a read request.

Where documentation is silent or ambiguous, treat the behavior as unverified. Reproduce it in a test environment or ask the application’s maintainer or your operations provider for the relevant implementation details.

  • Check how to enable and disable the mode, and whether it is controlled by the application, a proxy, or another deployment component.
  • Confirm what response browser users and API clients receive, including status, headers, and response body format.
  • Check how the app handles existing sessions, in-flight requests, worker processes, and failed or deferred incoming events.
  • Confirm whether the documented behavior applies to the deployed version and configuration.

Test browser access, APIs, and active sessions

Use separate browser and API checks. For each, test a safe read and a representative write, then inspect the actual response rather than relying on the maintenance page alone. Record the status code, relevant headers, and whether the response is HTML or an API-friendly error format. A service-unavailable response may be appropriate, but the exact contract is application-specific.

Test a session that was already signed in before maintenance begins. Check whether it can still read, submit a form, or perform a write. Also check whether the application returns a clear message rather than leaving a user with an apparent success when the write did not complete.

If the app offers read-only behavior, verify it rather than inferring it from the label. Some implementations permit methods such as GET, HEAD, and OPTIONS while rejecting POST, PUT, PATCH, and DELETE. A nominally read-only request can still cause writes if a page view updates a counter, session record, last-seen value, or other application state.

  • Try browser navigation to a normal page, a sign-in or session-dependent page, and a representative form submission.
  • Send a safe API read and a representative API write; check status, headers, and response format.
  • Test routes that may be exempt, such as health or operational paths, and confirm that their availability is intentional.
  • Start a request just before enabling maintenance and observe whether it completes, is interrupted, or waits only up to a documented timeout.
  • Check whether clients can distinguish a temporary maintenance rejection from a successful write.

Check workers and integrations separately

A blocked web interface does not prove that background writes have stopped. Scheduled tasks and queued jobs may continue, pause, or behave differently depending on the application and runner. Test those components separately and determine whether work that becomes due during maintenance is retained, retried, or lost.

Incoming events need their own test. A webhook or push request may be rejected while the application is in maintenance, even if scheduled work is deferred. Confirm what the sending system does after a rejection: it might retry, require manual replay, or not preserve the event. Do not assume that the application queues an event just because it can queue its own jobs.

For any work that should wait until service returns, identify where pending work is visible and how you will tell whether it has completed. If the application does not document or expose this state, include that uncertainty in the maintenance decision.

  • Check each worker or scheduler’s state while maintenance is enabled.
  • Observe whether a scheduled task due during the window runs, waits, retries, or is skipped.
  • Test a representative incoming integration event and confirm the sender’s retry or replay behavior.
  • Identify how to inspect pending, failed, and recently completed work after the window.

Coordinate the window and prepare a stop condition

Tell users when the window begins, which actions may be unavailable, and how they should handle unsaved work. Give integration owners or external-system operators advance notice if their requests could be rejected or delayed. Where possible, agree on a pause, retry, or replay plan with each sender.

Before enabling maintenance, make sure the people running the change can see the application and its relevant worker or integration status. Keep the disable or rollback procedure available, and decide in advance what result would cause you to stop rather than continue.

  • Send a clear notice with the expected window and affected workflows.
  • Coordinate pauses or retry expectations with systems that submit requests or depend on application responses.
  • Confirm that the responsible operator can access the controls and monitoring needed to exit maintenance.
  • Write down a stop condition, such as an unexpected write during maintenance or evidence that critical incoming work cannot be recovered.

Exit maintenance and verify recovery

Turn maintenance off using the documented procedure, then test from a normal user’s perspective and through the API. A successful restart or a page that loads again is not enough to prove that the application is healthy or that data is complete.

Check pending and failed jobs, incoming events, and any work that should have been deferred. Reconcile important records against the originating systems where appropriate. Then exercise the critical end-to-end workflows identified before the window, including the parts that use integrations or background processing.

Keep monitoring until delayed work has either completed or been deliberately handled. If a workflow is missing data, stuck, or producing duplicate effects, pause dependent processing where safe and follow the recovery procedure rather than treating the maintenance window as finished.

  • Confirm that representative browser reads and writes work again.
  • Confirm that API clients receive their expected success responses and can complete a representative write.
  • Review worker, scheduler, and integration status; investigate pending or failed work.
  • Check data integrity and completeness for critical workflows, not just application availability.
  • Tell users and integration owners when normal service is confirmed, and record any exceptions or follow-up actions.

Document the result and know when maintenance mode is not enough

Record the tested behavior, configuration, exceptions, and recovery checks so the next maintenance window starts with evidence instead of assumptions. Include who can enable or disable the mode, how to inspect deferred work, and what to do if integrations reject events or requests remain in flight.

Maintenance mode is not a substitute for a deployment or recovery plan. If you cannot tell whether writes are blocked, whether incoming work is preserved, or how to recover an interrupted workflow, do not treat the switch as a safety guarantee. You may need a different deployment approach, explicit integration coordination, or a tested restore and rollback procedure.

For applications deployed as Docker workloads, distinguish the application’s own maintenance behavior from container lifecycle management. Managed deployment, routing, TLS, or backups can support operations, but they do not by themselves establish which application requests or jobs are blocked. Airbip provides managed deployment for catalog applications, service lifecycle management, and configurable backups; verify the specific application’s maintenance behavior and your data and access requirements separately.

  • Keep a concise record of test cases, expected and observed results, and any version or configuration details needed to repeat them.
  • Document recovery ownership, escalation contacts, and the procedure for handling rejected, delayed, or duplicate work.
  • If the consequences of losing or duplicating work are unacceptable and behavior remains uncertain, postpone the window until the uncertainty is resolved.

Frequently asked questions

Does maintenance mode stop all writes?

Not necessarily. It may gate selected routes while workers, integrations, exempt paths, or already-running requests behave differently. Test browser and API writes, background work, and incoming events separately.

Is read-only mode safe if it allows only GET requests?

Not automatically. A read request can still change application state, for example by updating a session or view counter. Test representative reads and inspect whether they cause writes.

What should I test before switching maintenance mode off?

Check representative browser and API workflows, pending and failed jobs, incoming integration events, and data integrity. Confirm critical end-to-end workflows work again, not just that the application responds.

Does managed hosting guarantee safe maintenance behavior?

No. Deployment and infrastructure management do not establish how a particular application handles requests, workers, sessions, or integrations during maintenance. Verify those application-specific behaviors and your recovery plan.

Sources and further reading 5
  1. Background work Metis Suite Documentation
  2. Maintenance Mode Autumn Rust Web Framework Documentation
  3. Staged and Zero-Downtime Deploys Autumn Rust Web Framework Documentation
  4. Architecture strategies for reliability testing Microsoft Azure Well-Architected Framework
  5. Rails Maintenance Mode: How to Enable It Without Dropping Requests Enkihost Blog