summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/state.go b/state.go
index bf88f012..98451f48 100644
--- a/state.go
+++ b/state.go
@@ -14,6 +14,9 @@ type State interface {
// NumJobs shows how many times worker was invoked
NumExecs() int64
+
+ // IsActive returns true if worker not Inactive or Stopped
+ IsActive() bool
}
const (