Open kokjinsam opened 4 years ago
Hey @sammkj. This is a good suggestion, I did not support idempotent initially but I see cases where you want to issue multiple async GET requests and then use their returns, so Ill definitely implement this.
We also need a better guards there to make sure error can be raised at compile-time.
Example
Expected Behavior
When
step3
returns{:error, reason}
, operations instep1
andstep3
should be rolled back and:noop
forstep2
.Current Behavior
The following error is thrown:
Why this is a problem?
This behavior will become an issue if you're composing multiple sages.