Skip to content

Commit

Permalink
Sync the current savestate after recovery and before starting any inp…
Browse files Browse the repository at this point in the history
…ut processes (since if input processes fail to initialise we may exit immediately)
  • Loading branch information
lucasnetau committed Dec 7, 2023
1 parent 5ed220d commit 5221816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ public function start_action(string $actionName): Process
if ($this->state->state() === State::RECOVERY && count($this->erroredActionCommands) === 0) {
$this->logger->info('Replay of errored actions completed successfully. Resuming normal operations');
$this->state = new State(State::STARTING);
$this->saveStateHandler->saveStateSync($this->buildState());
$this->initialise_input_processes();
}
}
Expand Down

0 comments on commit 5221816

Please sign in to comment.