Cancel Function Callback #152
sancar
announced in
W: Feature Request
Replies: 1 comment
-
|
+1 for option 1 as well 🙌 So far really enjoy using Upstash and the code design of the SDK. Having separate function callback to separate error and cancellation makes a lot of sense! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When a workflow is canceled, there is no cleanup function that we call similar to
failureFunction. It could be the case thata cleanup is needed upon cancellation.
Option 1:
Option 2:
@mehmet.tokgoz : I would personally prefer the first option as it is clearer. I like that the failureFunction is exclusively for failures.
Beta Was this translation helpful? Give feedback.
All reactions