Class JobClaimer
java.lang.Object
com.kingsrook.qqq.backend.core.jobs.runtime.JobClaimer
Picks the next chunk for this pod and claims it (spec section 2.8).
Order: highest priority first, then round-robin between users (a user's
second job ranks after every other user's first), then oldest queuedAt.
Caps: maxConcurrentJobs per process, maxActiveJobsPerUser per user, and
maxParallelChunks per job. A QUEUED job held back by a cap gets a
statusReason saying why.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JobClaimer
Constructor
-
-
Method Details
-
claimNext
Claim the next chunk this pod may run, or empty when there is none.- Throws:
QException
-