# JobStatus

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.jobstatus/
> Summary: JobStatus: The status of a queued job.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

The status of a queued job.

```csharp
[JsonConverter(typeof(JsonStringEnumConverter<JobStatus>))]
public enum JobStatus
```

## Fields

`Cancelled = 5` 

The job was cancelled.

`Completed = 3` 

The job completed successfully.

`Failed = 4` 

The job failed after exceeding `TraconSchedulingOptions.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

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