Skip to content

JobStatus

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The status of a queued job.

[JsonConverter(typeof(JsonStringEnumConverter<JobStatus>))]
public enum JobStatus

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.

Written as a name in JSON, stored as smallint in the database. The value order must not change — only append.