Skip to content

Make deployer rollback stop and verify the old service before replacement #185

Done

Description

@Nickfost

Goal

During rollback, the shared deployer should stop a running workload and confirm it has exited before starting its replacement when the two must not overlap (for example, a scheduler or singleton worker). This belongs in the deployer, not in separate app scripts. Builds on #22; don't broaden the current production support or approval boundary.

Acceptance

  • Request graceful shutdown and wait within a bounded, documented timeout. Scope stops to the exact managed target and services; leave unrelated services and persistent state alone.
  • Verify the old workload has exited before starting its replacement from the previously approved immutable artifact. If the stop times out or exit cannot be verified, report the target, service and reason, leave the operation in an explicit safe state, and do not start a second instance. Any authorized escalation must be explicit and accounted for, never a silent success.
  • Verify rollback health and record the resulting artifact identity. A repeated or interrupted operation must not start a duplicate workload.
  • Prove the normal path and a deliberately stuck stop on an isolated non-production target. Publish the supported core version and adapter/config expectations so downstream repos can adopt it without copying the rollback logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions