File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/cli-v3/src/entryPoints Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -691,10 +691,12 @@ class ManagedRunController {
691
691
// Kill the run process
692
692
await this . taskRunProcess ?. kill ( "SIGKILL" ) ;
693
693
694
- const warmStartUrl = new URL (
695
- "/warm-start" ,
696
- env . TRIGGER_WARM_START_URL ?? env . TRIGGER_WORKER_API_URL
697
- ) ;
694
+ if ( ! env . TRIGGER_WARM_START_URL ) {
695
+ console . error ( "waitForNextRun: warm starts disabled, shutting down" ) ;
696
+ process . exit ( 0 ) ;
697
+ }
698
+
699
+ const warmStartUrl = new URL ( "/warm-start" , env . TRIGGER_WARM_START_URL ) ;
698
700
699
701
const res = await longPoll < DequeuedMessage > (
700
702
warmStartUrl . href ,
@@ -709,6 +711,7 @@ class ManagedRunController {
709
711
"x-trigger-worker-instance-name" : env . TRIGGER_WORKER_INSTANCE_NAME ,
710
712
} ,
711
713
} ,
714
+ // TODO: get these from the warm start service instead
712
715
{
713
716
timeoutMs : env . TRIGGER_WARM_START_CONNECTION_TIMEOUT_MS ,
714
717
totalDurationMs : env . TRIGGER_WARM_START_TOTAL_DURATION_MS ,
You can’t perform that action at this time.
0 commit comments