summaryrefslogtreecommitdiff
path: root/pkg/state/job/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/state/job/state.go')
-rw-r--r--pkg/state/job/state.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkg/state/job/state.go b/pkg/state/job/state.go
index e5b142b5..d90118c3 100644
--- a/pkg/state/job/state.go
+++ b/pkg/state/job/state.go
@@ -1,6 +1,17 @@
package job
+// State represents job's state
type State struct {
- Queue string
+ // Pipeline name
+ Pipeline string
+ // Driver name
+ Driver string
+ // Queue name (tube for the beanstalk)
+ Queue string
+ // Active jobs which are consumed from the driver but not handled by the PHP worker yet
Active int64
+ // Delayed jobs
+ Delayed int64
+ // Reserved jobs which are in the driver but not consumed yet
+ Reserved int64
}