diff options
author | Wolfy-J <[email protected]> | 2019-05-03 13:37:39 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-03 13:37:39 +0300 |
commit | e52c29d081a14f0ec4efb01da11c69215ea40a6a (patch) | |
tree | 52a54ed292bfb5e27ef950e598181de0f70d759a /worker.go | |
parent | 46519d2a383c9564007e1d2a6beb492988f8c6c9 (diff) |
better worker removal mechanism
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -193,6 +193,10 @@ func (w *Worker) Exec(rqs *Payload) (rsp *Payload, err error) { return rsp, err } +func (w *Worker) markDisabled() { + w.state.set(StateDisabled) +} + func (w *Worker) start() error { if err := w.cmd.Start(); err != nil { close(w.waitDone) |