Allow a total number of jobs that a worker can take to be defined

In situations where we don't want long-running workers using stale data, we should be able to define the total number of jobs that a worker could take.