Skip to content
Tracon

JobQueueDepth

Namespace Tracon · Assembly Tracon.Abstractions.dll

The number of open jobs in one lane/status pair.

public sealed record JobQueueDepth : IEquatable<JobQueueDepth>

objectJobQueueDepth

IEquatable<JobQueueDepth>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Returned by IJobStore.GetQueueDepthAsync and published through the tracon.job.queue.depth observable gauge. Only the open statuses are reported — JobStatus.Pending, JobStatus.Leased, and JobStatus.Running. Terminal statuses are counted by tracon.job.executions instead of by scanning the table, which ties the cost of this query to the amount of outstanding work rather than to the size of the queue’s history.

A pair with no open jobs is not reported; the absence of a row means zero.

public JobQueueDepth()

The number of jobs in this lane and status.

public required long Count { get; init; }

long

The lane the jobs belong to. See JobLanes.

public required string Lane { get; init; }

string

The open status the jobs are in.

public required JobStatus Status { get; init; }

JobStatus

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(JobQueueDepth? other)

other JobQueueDepth?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(JobQueueDepth?, JobQueueDepth?)

Section titled “ operator ==(JobQueueDepth?, JobQueueDepth?)”
public static bool operator ==(JobQueueDepth? left, JobQueueDepth? right)

left JobQueueDepth?

right JobQueueDepth?

bool

operator !=(JobQueueDepth?, JobQueueDepth?)

Section titled “ operator !=(JobQueueDepth?, JobQueueDepth?)”
public static bool operator !=(JobQueueDepth? left, JobQueueDepth? right)

left JobQueueDepth?

right JobQueueDepth?

bool