diff options
author | Valery Piashchynski <[email protected]> | 2021-03-29 13:18:23 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-29 13:18:23 +0300 |
commit | 77dff1be03092a26055eaf9f18ff9be68f119624 (patch) | |
tree | 70dd11bf64f8ac633749c96bd439ea91640ca7bd /pkg/worker/state.go | |
parent | 970014530a23d57a3be41c6369ac6456d0b36ae1 (diff) | |
parent | b7d84bdf93ce90925f22091dd8df02985dd07a77 (diff) |
Merge pull request #615 from spiral/slow_last_execution
🐛 fix(bug): slow last response when reached `max_jobs` limit
Diffstat (limited to 'pkg/worker/state.go')
-rwxr-xr-x | pkg/worker/state.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/worker/state.go b/pkg/worker/state.go index 176e151b..502f8199 100755 --- a/pkg/worker/state.go +++ b/pkg/worker/state.go @@ -27,6 +27,9 @@ const ( // State of worker, when no need to allocate new one StateDestroyed + // State of worker, when it reached executions limit + StateMaxJobsReached + // StateStopped - process has been terminated. StateStopped |