(dispatchId: string)
| 362 | * wrapper (`tableRunDispatcherTask`) and the in-process inline path so both |
| 363 | * runtimes use identical loop semantics + error logging. */ |
| 364 | export async function runDispatcherToCompletion(dispatchId: string): Promise<void> { |
| 365 | while ((await dispatcherStep(dispatchId)) === 'continue') {} |
| 366 | } |
| 367 | |
| 368 | /** Run one window of the dispatcher state machine. Caller re-invokes (via the |
| 369 | * trigger.dev task wrapper) until the returned status is `'done'`. */ |
no test coverage detected