(
executionId: string,
name: string,
workflowName: string,
deferredName: string,
fireAt: number
)
| 421 | ) |
| 422 | |
| 423 | const insertClock = ( |
| 424 | executionId: string, |
| 425 | name: string, |
| 426 | workflowName: string, |
| 427 | deferredName: string, |
| 428 | fireAt: number |
| 429 | ): Effect.Effect<boolean> => |
| 430 | exec( |
| 431 | `INSERT INTO "${clockTable}" (execution_id, name, workflow_name, deferred_name, fire_at) |
| 432 | VALUES (?, ?, ?, ?, ?) |
| 433 | ON CONFLICT DO NOTHING |
| 434 | RETURNING execution_id`, |
| 435 | [executionId, name, workflowName, deferredName, fireAt] |
| 436 | ) |
| 437 | .pipe(Effect.map((rows) => (rows as ReadonlyArray<unknown>).length > 0)) |
| 438 | |
| 439 | const deleteClock = (executionId: string, name: string) => |
| 440 | exec( |
no test coverage detected
searching dependent graphs…