summaryrefslogtreecommitdiff
path: root/pkg/states/worker_states.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-03 17:31:17 +0300
committerValery Piashchynski <[email protected]>2021-02-03 17:31:17 +0300
commit8eda5dc6f0f7e05d7b3d62e1861af05b49a2574a (patch)
treefae66ad49d2a4624a7caf45a5bf07d53e5c7d26f /pkg/states/worker_states.go
parent20a1a5d2eb26090e0eef0e6772330ee2a52526fa (diff)
Fix memory leak in the Worker.go
Diffstat (limited to 'pkg/states/worker_states.go')
-rw-r--r--pkg/states/worker_states.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/states/worker_states.go b/pkg/states/worker_states.go
index 22fdfe8a..fe653cb4 100644
--- a/pkg/states/worker_states.go
+++ b/pkg/states/worker_states.go
@@ -16,6 +16,7 @@ const (
// StateStopping - process is being softly stopped.
StateStopping
+ // StateKilling - process is being forcibly stopped
StateKilling
// State of worker, when no need to allocate new one
@@ -27,5 +28,6 @@ const (
// StateErrored - error WorkerState (can't be used).
StateErrored
+ // StateRemove - worker is killed and removed from the stack
StateRemove
)