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
Hi,
I would to get some help on how to implement long running task with actors.
Imagine a workflow which must be approved by an user:
workflow is initialized
some actor will send the notification to the user
the actor will then wait for approval by the user
The actor should probably switch state to waiting and persist it state, right? Can the actor stay alive for the whole time (not counting restarts/shutdowns)? I read this post about PipeTo, can it be applied here? Or should I wait for some message sent to the actor from the UI addressing it by an anchor?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I would to get some help on how to implement long running task with actors.
Imagine a workflow which must be approved by an user:
The actor should probably switch state to
waiting
and persist it state, right? Can the actor stay alive for the whole time (not counting restarts/shutdowns)? I read this post aboutPipeTo
, can it be applied here? Or should I wait for some message sent to the actor from the UI addressing it by an anchor?Thanks for hints and clarifications,
Karel
Beta Was this translation helpful? Give feedback.
All reactions