Skip to content
File

Blob: src/contracts/execution/dispatch.ts

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