blob: fe653cb40093c099fd94de69cc1e3d6968761e98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package states
const (
// StateInactive - no associated process
StateInactive int64 = iota
// StateReady - ready for job.
StateReady
// StateWorking - working on given payload.
StateWorking
// StateInvalid - indicates that WorkerProcess is being disabled and will be removed.
StateInvalid
// StateStopping - process is being softly stopped.
StateStopping
// StateKilling - process is being forcibly stopped
StateKilling
// State of worker, when no need to allocate new one
StateDestroyed
// StateStopped - process has been terminated.
StateStopped
// StateErrored - error WorkerState (can't be used).
StateErrored
// StateRemove - worker is killed and removed from the stack
StateRemove
)
|