Skip to content

Commit

Permalink
Throw exception on Unknown status return
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Aug 5, 2024
1 parent 90023e5 commit 5882212
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ public FateId create() {
case ACCEPTED:
return fateId;
case UNKNOWN:
log.error("Fate creation returned UNKNOWN status, raising exception");
throw new IllegalStateException("Fate creation returned UNKNOWN status");
case REJECTED:
log.debug(
"Fate creation returned REJECTED status (most likely FateId collision), retrying...");
attempt++;
continue;
default:
Expand Down

0 comments on commit 5882212

Please sign in to comment.