JobRecord
AgentPrism.Abstractions.dllThe summary of a queued job. The header of its items (JobItemRecord).
public sealed record JobRecord : IEquatable<JobRecord>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”JobRecord()
Section titled “ JobRecord()”public JobRecord()Properties
Section titled “Properties”Attempt
Section titled “ Attempt”The number of lease attempts. Increments on every IJobStore.LeaseAsync call.
public int Attempt { get; init; }Property Value
Section titled “Property Value”CompletedAt
Section titled “ CompletedAt”The completion time (UTC). null while the job is in progress.
public DateTimeOffset? CompletedAt { get; init; }Property Value
Section titled “Property Value”CreatedAt
Section titled “ CreatedAt”The creation time (UTC).
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”DoneItems
Section titled “ DoneItems”The number of items that completed successfully.
public int DoneItems { get; init; }Property Value
Section titled “Property Value”ErrorMessage
Section titled “ ErrorMessage”The failure message. Populated only for JobStatus.Failed.
public string? ErrorMessage { get; init; }Property Value
Section titled “Property Value”FailedItems
Section titled “ FailedItems”The number of items that failed.
public int FailedItems { get; init; }Property Value
Section titled “Property Value”The job identifier.
public required Guid Id { get; init; }Property Value
Section titled “Property Value”The job’s kind.
public required JobKind Kind { get; init; }Property Value
Section titled “Property Value”LeaseOwner
Section titled “ LeaseOwner”The identifier of the worker currently leasing the job. null if not leased.
public string? LeaseOwner { get; init; }Property Value
Section titled “Property Value”LeaseUntil
Section titled “ LeaseUntil”The time the current lease expires (UTC). The job may be re-leased once it expires.
public DateTimeOffset? LeaseUntil { get; init; }Property Value
Section titled “Property Value”MaxAttempts
Section titled “ MaxAttempts”The maximum number of attempts specific to this job. If
null, AgentPrismSchedulingOptions.MaxAttempts applies.
public int? MaxAttempts { get; init; }Property Value
Section titled “Property Value”int?
Remarks
Section titled “Remarks”Webhook delivery uses a ladder different from the global setting; this field prevents a single global number from being forced onto every job kind.
Payload
Section titled “ Payload”The input set or parameters.
public JsonElement Payload { get; init; }Property Value
Section titled “Property Value”ScheduleId
Section titled “ ScheduleId”The identifier of the schedule that produced this job. null for manually created (one-off) jobs.
public Guid? ScheduleId { get; init; }Property Value
Section titled “Property Value”Guid?
ScheduledFor
Section titled “ ScheduledFor”The earliest time the job is eligible to run (UTC).
public required DateTimeOffset ScheduledFor { get; init; }Property Value
Section titled “Property Value”StartedAt
Section titled “ StartedAt”The time the first lease happened (UTC).
public DateTimeOffset? StartedAt { get; init; }Property Value
Section titled “Property Value”Status
Section titled “ Status”The job’s current status.
public required JobStatus Status { get; init; }Property Value
Section titled “Property Value”TargetName
Section titled “ TargetName”The agent or workflow name to run.
public required string TargetName { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant the job belongs to.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”TotalItems
Section titled “ TotalItems”The total number of items.
public int TotalItems { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(JobRecord?)
Section titled “ Equals(JobRecord?)”public bool Equals(JobRecord? other)Parameters
Section titled “Parameters”other JobRecord?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(JobRecord?, JobRecord?)
Section titled “ operator ==(JobRecord?, JobRecord?)”public static bool operator ==(JobRecord? left, JobRecord? right)Parameters
Section titled “Parameters”left JobRecord?
right JobRecord?
Returns
Section titled “Returns”operator !=(JobRecord?, JobRecord?)
Section titled “ operator !=(JobRecord?, JobRecord?)”public static bool operator !=(JobRecord? left, JobRecord? right)Parameters
Section titled “Parameters”left JobRecord?
right JobRecord?