You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have actions that can succeed or fail. Independently of that, they generally need to run some cleanup to ensure that scorers know what has already been handled.
It'd be nice if actions first ran with ActionState::Success or ActionState::Failure, then an ActionState::Final match could handle all my cleanup. Now I'm performing all my cleanup in Success or Failure arms which is a bit confusing, particularly if I want a failure case but don't want to repeat the cleanup.
Thanks!
The text was updated successfully, but these errors were encountered:
I have actions that can succeed or fail. Independently of that, they generally need to run some cleanup to ensure that scorers know what has already been handled.
It'd be nice if actions first ran with
ActionState::Success
orActionState::Failure
, then anActionState::Final
match could handle all my cleanup. Now I'm performing all my cleanup inSuccess
orFailure
arms which is a bit confusing, particularly if I want a failure case but don't want to repeat the cleanup.Thanks!
The text was updated successfully, but these errors were encountered: