MCPcopy Index your code
hub / github.com/coder/coder / getPendingStatusLabel

Function getPendingStatusLabel

site/src/utils/provisionerJob.ts:3–10  ·  view source on GitHub ↗
(
	provisionerJob?: ProvisionerJob,
)

Source from the content-addressed store, hash-verified

1import type { ProvisionerJob } from "#/api/typesGenerated";
2
3export const getPendingStatusLabel = (
4 provisionerJob?: ProvisionerJob,
5): string => {
6 if (!provisionerJob || provisionerJob.queue_size === 0) {
7 return "Pending";
8 }
9 return `Position in queue: ${provisionerJob.queue_position}`;
10};

Callers 2

getStatusFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected