Hello, i'm currently building a scraper system on top of Akka Streams. I have written a Flow that is able to follow paginated sites and scrape them in a loop. For this i use a feedback merge.
My code: <https://gist.github.com/janlisse/f2672bf8bbee009ef009> <script src="https://gist.github.com/janlisse/f2672bf8bbee009ef009.js"></script> scrapePaginated takes a function that decides if there are further pages to scrape. If there are, it returns as part of the response tuple a Some() with the next url. And of course a None for the last page. The iteration and the feedback loop works and all pages are scraped properly. But even when all URL's are processed the stream never completes. OnComplete never gets invoked. Is this an expected behaviour? Or is there an error in my scrapePaginated method? I read the doc's chapter on graph deadlocks and liveness issues and finally added a buffer step with OverflowStrategy.Fail to the feedback loop but to no avail. If it helps to clarify the problem i can provide a simple Spec that reproduces the issue. Thanks in advance for any help! Jan -- >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
