fix: ensure not more than one task is executed on a worker with tasks