* Added job_max setting: once this number of jobs has status "Processing", consume() will not return any more jobs.
* Unit tests for above change in consume.t