Hi Sergey,
It's hard to guess with the information you provided, so here are a few
questions:
are you sure the killSwitch is placed in the correct place in the flow?
are flow stages executing in a timely fashion, or do they occupy CPU for
long periods of time?
how and when are you triggering
Hi Konrad,
Thanks for a tip! But it seems that postStop function executes only after
flow is finished. How to deal with it?
Thanks!
Regards,
Sergey
вторник, 24 января 2017 г., 22:31:41 UTC+2 пользователь Konrad Malawski
написал:
>
> Add an Akka Streams KillSwitch to your stream and trigger
Add an Akka Streams KillSwitch to your stream and trigger it from the
postStop of the actor.
Read about those concepts in the docs.
--
Konrad Malawski
On 24 January 2017 at 20:02:40, Sergey Sopin (sopin1...@gmail.com) wrote:
> Hi,
>
> I am trying to solve problem with the actor which works too
Hi,
I am trying to solve problem with the actor which works too long. In my
case "heavy" actor runs akka-stream which calculates some values, sometimes
this calculation takes too much time and I want to stop it. I supposed that
it will be stopped automatically in case parent actor throw