MCPcopy Index your code
hub / github.com/coder/mux / isWorkflowRunAlreadyActiveError

Function isWorkflowRunAlreadyActiveError

src/node/services/workflows/WorkflowService.ts:947–949  ·  view source on GitHub ↗
(error: unknown, runId: string)

Source from the content-addressed store, hash-verified

945}
946
947function isWorkflowRunAlreadyActiveError(error: unknown, runId: string): boolean {
948 return error instanceof Error && error.message === `Workflow run is already active: ${runId}`;
949}
950
951function unrefTimer(timer: ReturnType<typeof setTimeout>): void {
952 if (typeof timer !== "object" || timer == null || !("unref" in timer)) {

Callers 2

runInBackgroundMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected