Skip to content

Commit

Permalink
Add log statement for max run time timer clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
aliok committed Jan 24, 2024
1 parent a2b7a07 commit c112b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subcommand/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export async function start(argv:Args) {
let maxAbortTimeTimeout;
if (argv.maxRunTimeInMinutes) {
logger.info(`Maximum run time of ${argv.maxRunTimeInMinutes} minutes set. Exiting after that time.`);
maxAbortTimeTimeout = setTimeout(() => {
maxAbortTimeTimeout = setTimeout(function () {
logger.info(`Maximum run time of ${argv.maxRunTimeInMinutes} minutes reached. Sending shutdown signal.`);
maxRunTimeAbortController.abort();
}, argv.maxRunTimeInMinutes * 60 * 1000);
Expand All @@ -234,6 +234,7 @@ export async function start(argv:Args) {
saveProcessRunOutput(logger, processFileHelper, latestProcessStateDir, processState, currentRunOutput, getNow);

if (maxAbortTimeTimeout) {
logger.info("Clearing max abort time timeout.");
clearTimeout(maxAbortTimeTimeout);
}

Expand Down

0 comments on commit c112b3e

Please sign in to comment.