Table of Contents

Namespace Integrations.Infrastructure.Jobs

Classes

JobRegistration

Registers scheduled jobs.

JobRun

When a scheduled job last ran, shared by every replica. The scheduler only starts a job when this says it is due, so N worker replicas still run each job once per interval (or once a day at its RunAt).

JobRunner

Runs a job on one replica at a time (Postgres advisory lock) and only when due according to job_runs, which it updates. Used by the scheduler and by the admin "run now" endpoint (which forces the run).

Enums

JobRunOutcome

What TryRunAsync(IScheduledJob, bool, CancellationToken) did.