JobStatus
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe status of a queued job.
[JsonConverter(typeof(JsonStringEnumConverter<JobStatus>))]public enum JobStatusFields
Section titled “Fields”Cancelled = 5
The job was cancelled.
Completed = 3
The job completed successfully.
Failed = 4
The job failed after exceeding AgentPrismSchedulingOptions.MaxAttempts.
Leased = 1
A worker has leased the job but has not started executing it yet.
Pending = 0
The job is waiting in the queue, not yet leased.
Running = 2
The job is currently executing.
Remarks
Section titled “Remarks”Written as a name in JSON, stored as smallint in the database. The
value order must not change — only append.