Skip to content

JobRecord

← All HTTP schemas

The summary of a queued job. The header of its items (JobItemRecord).

Shape: object

Property Required Type Description Rules
id yes string (uuid) The job identifier.
tenantId yes string The tenant the job belongs to.
scheduleId no string (uuid) The identifier of the schedule that produced this job. null for manually created (one-off) jobs.
kind yes JobKind The job’s kind.
targetName yes string The agent or workflow name to run.
status yes JobStatus The job’s current status.
payload no JsonElement The input set or parameters.
totalItems no integer (int32) The total number of items. pattern `^-?(?:0\
doneItems no integer (int32) The number of items that completed successfully. pattern `^-?(?:0\
failedItems no integer (int32) The number of items that failed. pattern `^-?(?:0\
attempt no integer (int32) The number of lease attempts. Increments on every ValueTask<JobRecord?> IJobStore.LeaseAsync(string owner, TimeSpan leaseDuration, CancellationToken cancellationToken = default(CancellationToken)) call. pattern `^-?(?:0\
maxAttempts no integer (int32) The maximum number of attempts specific to this job. If null, AgentPrismSchedulingOptions.MaxAttempts applies. pattern `^-?(?:0\
leaseOwner no string The identifier of the worker currently leasing the job. null if not leased.
leaseUntil no string (date-time) The time the current lease expires (UTC). The job may be re-leased once it expires.
scheduledFor yes string (date-time) The earliest time the job is eligible to run (UTC).
startedAt no string (date-time) The time the first lease happened (UTC).
completedAt no string (date-time) The completion time (UTC). null while the job is in progress.
errorMessage no string The failure message. Populated only for JobStatus.Failed.
createdAt yes string (date-time) The creation time (UTC).