MCPcopy Index your code
hub / github.com/simstudioai/sim / buildPendingExec

Function buildPendingExec

apps/sim/hooks/queries/tables.ts:1964–1975  ·  view source on GitHub ↗

* Optimistic exec patch — flips every targeted (group, row) execution to * `pending` so the UI doesn't lag the round-trip. Server eligibility may skip * some; refetch on settle reconciles.

(
  prev: RowExecutionMetadata | undefined,
  workflowIdFallback?: string
)

Source from the content-addressed store, hash-verified

1962 * some; refetch on settle reconciles.
1963 */
1964function buildPendingExec(
1965 prev: RowExecutionMetadata | undefined,
1966 workflowIdFallback?: string
1967): RowExecutionMetadata {
1968 return {
1969 status: 'pending',
1970 executionId: prev?.executionId ?? null,
1971 jobId: null,
1972 workflowId: prev?.workflowId ?? workflowIdFallback ?? '',
1973 error: null,
1974 }
1975}
1976
1977/**
1978 * The single canonical run mutation. Every UI gesture (single cell, per-row

Callers 1

useRunColumnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected