Skip to content

Commit

Permalink
Error recovery is only successful if we don't add back to the errored…
Browse files Browse the repository at this point in the history
… queue
  • Loading branch information
lucasnetau committed May 26, 2023
1 parent c6e1420 commit a6683c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ public function start_action(string $actionName): Process
if (count($this->inflightActionCommands) === 0) {
$this->inflightActionCommands = [];

if ($this->errorRecovery === true) {
if ($this->errorRecovery === true && count($this->erroredActionCommands) === 0) {
$this->logger->info('Replay of errored actions completed successfully. Resuming normal operations');
$this->errorRecovery = false;
$this->initialise_input_processes();
Expand Down

0 comments on commit a6683c1

Please sign in to comment.