supabase / workflows

Apache License 2.0
138 stars 5 forks source link

Feat/failures #2

Closed fracek closed 3 years ago

fracek commented 3 years ago

What kind of change does this PR introduce?

This PR adds support for failing task activities.

What is the new behavior?

Users can use a new FailTask command to signal a task failed (for example, the API was not available), the interpreter then returns either a TaskFailed event with the amount of time to wait before resuming execution, or it will transition according to the Catch rule.