summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-11 21:46:03 +0300
committerWolfy-J <[email protected]>2018-06-11 21:46:03 +0300
commitaba7704b71a00294b38a995e3ecadd0bd7cc6c12 (patch)
treeb8da096852811dd6240676aa839674ae1451ce3f /state.go
parent2b626f392f8884573aa26d51d4df9d16136a282e (diff)
no library dependency
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 4a1a8384..af29de50 100644
--- a/state.go
+++ b/state.go
@@ -26,6 +26,9 @@ const (
// StateWorking - working on given payload.
StateWorking
+ // StateStreaming - indicates that worker is streaming the data at the moment.
+ StateStreaming
+
// StateStopping - process is being softly stopped.
StateStopping
@@ -54,6 +57,8 @@ func (s *state) String() string {
return "ready"
case StateWorking:
return "working"
+ case StateStreaming:
+ return "streaming"
case StateStopped:
return "stopped"
case StateErrored: