Skip to content

Commit

Permalink
add catch when setting state in ex controller
Browse files Browse the repository at this point in the history
  • Loading branch information
sotojn committed Sep 9, 2024
1 parent 2cf5d88 commit e6e41fb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,10 @@ export class ExecutionController {
/// shutdown. We want to restart in this case.
if (status !== 'stopping' && includes(runningStatuses, status)) {
this.logger.info('Skipping shutdown to allow restart...');
await this.executionStorage.setStatus(this.exId, 'paused');
await this.executionStorage.setStatus(this.exId, 'paused')
.catch((err) => {
logError(this.logger, err, 'failure to set status to paused while restarting..');
});
return;
}
}
Expand Down

0 comments on commit e6e41fb

Please sign in to comment.