diff options
author | Wolfy-J <[email protected]> | 2019-05-03 13:37:39 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-03 13:37:39 +0300 |
commit | e52c29d081a14f0ec4efb01da11c69215ea40a6a (patch) | |
tree | 52a54ed292bfb5e27ef950e598181de0f70d759a /state.go | |
parent | 46519d2a383c9564007e1d2a6beb492988f8c6c9 (diff) |
better worker removal mechanism
Diffstat (limited to 'state.go')
-rw-r--r-- | state.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,6 +26,9 @@ const ( // StateWorking - working on given payload. StateWorking + // StateDisabled - indicates that worker is being disabled and will be removed. + StateDisabled + // StateStopping - process is being softly stopped. StateStopping @@ -54,6 +57,8 @@ func (s *state) String() string { return "ready" case StateWorking: return "working" + case StateDisabled: + return "disabled" case StateStopped: return "stopped" case StateErrored: |