Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.
This repository was archived by the owner on Oct 15, 2019. It is now read-only.

Better way to stop supervisor service *if it exists* #59

Description

@estebistec

For a deploy I have, I'm looking to shut down a supervisord during the nodes upgrade because there are multiple nodes of this specific type. So I have HA and can do a "rolling upgrade" to avoid the currently upgrading server from serving requests with partially updated state.

The problem is that for a fully idempotent upgrade/install, I cannot assume that the service has even been created yet. So during the stop, it will blow up if the service doesn't exist.

Now, I can catch that exception and roll on, but the problem is that the exception is not typed, so I cannot be confident that the known exception is even what occurred as I allow it to happen while trying a stop. So...

  • Should there be a more specific exception type for this?
  • Is there a better way to try a stop where the service may not yet exist and am I just doing it wrong?

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