Skip to content

Commit

Permalink
It is correct for a WAITING_FOR_RESOURCES job to have no active opera…
Browse files Browse the repository at this point in the history
…tions

This commit reverts 11dc61a
and c656216
  • Loading branch information
avarsava committed May 7, 2024
1 parent c656216 commit ddc598a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions changes/fix_fix-bad-recovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix broken recovery logic present from v0.19.0

Original file line number Diff line number Diff line change
Expand Up @@ -740,14 +740,6 @@ record ->
final var activeOperations =
operations.getOrDefault(
record.get(ACTIVE_WORKFLOW_RUN.ID), List.of());
if (activeOperations.isEmpty()) {
String erroneousHash = record.get(WORKFLOW_RUN.HASH_ID);
System.err.printf(
"Error recovering workflow run %s: no operations match\n",
erroneousHash);
BadRecoveryTracker.add(erroneousHash);
return;
}
final var workflow =
DatabaseWorkflow.recover(
target,
Expand Down

0 comments on commit ddc598a

Please sign in to comment.