signalfx / maestro-ng

Orchestration of Docker-based, multi-host environments
https://signalfx.com
Apache License 2.0
685 stars 83 forks source link

support the unless-stopped restart policy #181

Closed petrkalina closed 7 years ago

petrkalina commented 7 years ago

add support to the unless-stopped restart policy (see https://docs.docker.com/engine/reference/run/)

IMO this is due to this line in https://github.com/signalfx/maestro-ng/blob/master/maestro/entities.py

# Possible values for the restart policy type.
_VALID_RESTART_POLICIES = ['no', 'always', 'on-failure']

so the fix should be trivial

petrkalina commented 7 years ago

when is the next release planned so I can apply this fix in production?

mpetazzoni commented 7 years ago

Just released 0.4.2 with the recent changes, including this fix. Enjoy!