Skip to main content

queue_positions

Creates, updates, deletes, gets or lists a queue_positions resource.

Overview

Namequeue_positions
TypeResource
Idazure.communication_job_router.queue_positions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
estimatedWaitTimeMinutesnumberEstimated wait time of the job rounded up to the nearest minute. Required.
jobIdstringId of the job these details are about. Required.
positionintegerPosition of the job in question within that queue. Required.
queueIdstringId of the queue this job is enqueued in. Required.
queueLengthintegerLength of the queue: total number of enqueued jobs. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_queue_positionselectjob_id, endpointGets a job's position details. Gets a job's position details.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
job_idstringId of the job. Required.

SELECT examples

Gets a job's position details. Gets a job's position details.

SELECT
estimatedWaitTimeMinutes,
jobId,
position,
queueId,
queueLength
FROM azure.communication_job_router.queue_positions
WHERE job_id = '{{ job_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;