MCPcopy Create free account
hub / github.com/cloudwan/gohan / Stop

Method Stop

job/queue.go:105–108  ·  view source on GitHub ↗

Stop stops all worker after all job get done

()

Source from the content-addressed store, hash-verified

103
104//Stop stops all worker after all job get done
105func (queue *Queue) Stop() {
106 queue.waitGroup.Wait()
107 queue.ForceStop()
108}
109
110//ForceStop forces job manager without waiting job complete
111func (queue *Queue) ForceStop() {

Callers 1

TestQueueFunction · 0.95

Calls 2

ForceStopMethod · 0.95
WaitMethod · 0.80

Tested by 1

TestQueueFunction · 0.76