Closed jakzal closed 3 years ago
Existing tests verify that the pipeline has failed, even if there was an otherwise branch that recovered from the failure:
Is this intended?
@VaughnVernon please take a look at this change when you get a chance. I'll merge it now, as it's needed for a change in actors I'm about to submit (https://github.com/vlingo/xoom-actors/pull/91).
@jakzal I think that the original intention was that a failure handled by an otherwise()
would terminate the pipeline. However, I don't disagree that it should be possible to continue the pipeline if otherwise()
actually recovers the failure.
Given that preexisting pipelines terminate on failure should (or would hopefully) not cause problems because most/all purposely short circuit by producing a final outcome. For example, 404 or 500 on some HTTP response.
It should be proven by the snapshot build tonight 😃
Snapshot schemata builds won’t pass yet as I didn’t get this to pass : https://github.com/vlingo/xoom-schemata/pull/201
Examples in tests.