Hi all, I am new to akka-streams - I've just set up a basic pipeline which consumes from a messaging queue and then does some processing on the stream. But after running for a while, the application ceases to process messages, apparently because the downstream has been "cancelled" and onDownstreamFinish has been called on the source.
I just want to know what the reason for this might be? What would cause the downstream to be cancelled? For context, my pipeline is very simple - it looks like this: def source: Source[MyMessage, NotUsed] = .... def messageHandler(message: MyMessage): Future[Unit] = { val result = .... // Some code here which processes the message and returns a Future[Unit] result.recoverWith { case _ => Future.successful() } } def pipeline = source.mapAsync(10)(messageHandler) pipeline.runWith(Sink.ignore) Note that the use of recoverWith means that the message handler will always return a future which completes successfully - even if an exception is thrown somewhere. Is anyone able to offer some advice / insight into what might be happening? Thanks, Josh -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.