f22d6d7e8d
This change adds the ability to call Shutdown on a gearman-go worker which causes the worker to wait for all currently active jobs to finish and then close the connection. It does this by keeping tracking of the number of currently active transactions, disallowing new job creation, and using a WaitGroup to wait for all active jobs to finish. |
||
---|---|---|
.. | ||
agent.go | ||
common.go | ||
error.go | ||
example_test.go | ||
func.go | ||
inpack_test.go | ||
inpack.go | ||
job.go | ||
outpack_test.go | ||
outpack.go | ||
worker_disconnect_test.go | ||
worker_test.go | ||
worker.go |