diff options
Diffstat (limited to 'state/job/state.go')
-rw-r--r-- | state/job/state.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/state/job/state.go b/state/job/state.go new file mode 100644 index 00000000..56050084 --- /dev/null +++ b/state/job/state.go @@ -0,0 +1,19 @@ +package job + +// State represents job's state +type State struct { + // 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 + // Status - 1 Ready, 0 - Paused + Ready bool +} |