Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/supervisor/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const Env = z

// Optional services
TRIGGER_WARM_START_URL: z.string().optional(),
TRIGGER_WARM_START_DISPATCH_URL: z.string().optional(),
Comment thread
nicktrn marked this conversation as resolved.
TRIGGER_CHECKPOINT_URL: z.string().optional(),
TRIGGER_METADATA_URL: z.string().optional(),

Expand Down
4 changes: 3 additions & 1 deletion apps/supervisor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ class ManagedSupervisor {

private readonly isKubernetes = isKubernetesEnvironment(env.KUBERNETES_FORCE_ENABLED);
private readonly warmStartUrl = env.TRIGGER_WARM_START_URL;
private readonly warmStartDispatchUrl =
env.TRIGGER_WARM_START_DISPATCH_URL ?? env.TRIGGER_WARM_START_URL;
Comment thread
nicktrn marked this conversation as resolved.

private readonly wideEventOpts: WideEventOptions = {
service: "supervisor",
Expand Down Expand Up @@ -698,7 +700,7 @@ class ManagedSupervisor {
return false;
}

const warmStartUrlWithPath = new URL("/warm-start", this.warmStartUrl);
const warmStartUrlWithPath = new URL("/warm-start", this.warmStartDispatchUrl);

const headers: Record<string, string> = {
"Content-Type": "application/json",
Expand Down