MCPcopy Create free account
hub / github.com/CopilotKit/aimock / queuePosition

Function queuePosition

src/fal.ts:244–247  ·  view source on GitHub ↗
(job: FalQueueJob)

Source from the content-addressed store, hash-verified

242}
243
244function queuePosition(job: FalQueueJob): number {
245 if (job.status !== "IN_QUEUE") return 0;
246 return Math.max(0, job.pollsBeforeInProgress - job.pollCount);
247}
248
249function statusResponseBody(job: FalQueueJob): Record<string, unknown> {
250 const body: Record<string, unknown> = {

Callers 3

statusResponseBodyFunction · 0.85
handleFalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…