File
Blob: src/contracts/execution/dispatch.ts
| 1 | import { eg, type TypeFromCodec } from "@cloudflare/util-en-garde"; |
| 2 | |
| 3 | export const DispatchMode = eg.union([eg.literal("queue"), eg.literal("workflows")]); |
| 4 | export type DispatchMode = TypeFromCodec<typeof DispatchMode>; |
| 5 | |
| 6 | export const ExecutionRuntime = eg.literal("cloudflare_sandbox"); |
| 7 | export type ExecutionRuntime = TypeFromCodec<typeof ExecutionRuntime>; |
| 8 | |
| 9 | export const DEFAULT_DISPATCH_MODE: DispatchMode = "workflows"; |
| 10 | export const DEFAULT_EXECUTION_RUNTIME: ExecutionRuntime = "cloudflare_sandbox"; |