summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 13:37:39 +0300
committerWolfy-J <[email protected]>2019-05-03 13:37:39 +0300
commite52c29d081a14f0ec4efb01da11c69215ea40a6a (patch)
tree52a54ed292bfb5e27ef950e598181de0f70d759a /state.go
parent46519d2a383c9564007e1d2a6beb492988f8c6c9 (diff)
better worker removal mechanism
Diffstat (limited to 'state.go')
-rw-r--r--state.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/state.go b/state.go
index 8a065637..a5bd4397 100644
--- a/state.go
+++ b/state.go
@@ -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: