diff options
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) |