diff options
author | Anton Titov <[email protected]> | 2019-10-12 07:41:41 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-12 07:41:41 +0300 |
commit | 3589850c4601d4907979a9f996873038de930735 (patch) | |
tree | 61117f89311b7b8ec2cc680128ecdd1d27d6d94e /state.go | |
parent | 8a840c40828c1fb31c69fc846a85738ddef0a7c7 (diff) | |
parent | c9fdfb6e9484b9aa45e20a90e78a23d5d129308c (diff) |
Merge pull request #193 from awprice/health-service
adds a health service for determining the status of the workers
Diffstat (limited to 'state.go')
-rw-r--r-- | state.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ( |