@@ -16,6 +16,7 @@ import { getInputOverride } from '../lib/commands/resolve-input.js';
1616import {
1717 CommandExitCodes ,
1818 DEFAULT_LOCAL_STORAGE_DIR ,
19+ INTERRUPT_SIGNALS ,
1920 LEGACY_LOCAL_STORAGE_DIR ,
2021 MINIMUM_SUPPORTED_PYTHON_VERSION ,
2122 SUPPORTED_NODEJS_VERSION ,
@@ -338,6 +339,7 @@ export class RunCommand extends ApifyCommand<typeof RunCommand> {
338339 cmd : runtime . executablePath ,
339340 args : [ entrypoint ] ,
340341 opts : { env, cwd } ,
342+ forwardSignals : INTERRUPT_SIGNALS ,
341343 } ) ;
342344 } else {
343345 // Assert the package.json content for scripts
@@ -369,6 +371,7 @@ export class RunCommand extends ApifyCommand<typeof RunCommand> {
369371 args : [ 'run' , entrypoint ] ,
370372 opts : { env, cwd } ,
371373 overrideCommand : runtime . pmName ,
374+ forwardSignals : INTERRUPT_SIGNALS ,
372375 } ) ;
373376 }
374377
@@ -392,12 +395,14 @@ export class RunCommand extends ApifyCommand<typeof RunCommand> {
392395 cmd : runtime . executablePath ,
393396 args : [ '-m' , entrypoint ] ,
394397 opts : { env, cwd } ,
398+ forwardSignals : INTERRUPT_SIGNALS ,
395399 } ) ;
396400 } else {
397401 await execWithLog ( {
398402 cmd : runtime . executablePath ,
399403 args : [ entrypoint ] ,
400404 opts : { env, cwd } ,
405+ forwardSignals : INTERRUPT_SIGNALS ,
401406 } ) ;
402407 }
403408
0 commit comments