Constructor JobQueuePass
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
JobQueuePass(IJobStore, JobHandlerRegistry, IJobAttemptRunner, JobConcurrencyGate, JobExecutionSettings)
Initializes the pass from the queue it claims out of and the bounds it claims and runs under.
public JobQueuePass(IJobStore store, JobHandlerRegistry handlers, IJobAttemptRunner attemptRunner, JobConcurrencyGate concurrency, JobExecutionSettings settings)
Parameters
storeIJobStoreClaims the batch this pass runs.
handlersJobHandlerRegistryAnswers which job types this process can run.
attemptRunnerIJobAttemptRunnerRuns one claimed job, isolated from the jobs running beside it, and records its outcome.
concurrencyJobConcurrencyGateDecides how many of the batch run at once, in total and per job type.
settingsJobExecutionSettingsThe batch size and the lease each claimed job is held under.
Exceptions
- ArgumentNullException
Thrown when a collaborator is null.