signalfx / maestro-ng

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

support the unless-stopped restart policy #181

Closed petrkalina closed 8 years ago

petrkalina commented 8 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 8 years ago

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

mpetazzoni commented 8 years ago

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