complete tasks in a worker pool

Signed-off-by: Ashvin Agrawal <ashvin@pivotal.io>