Closed krtek4 closed 8 years ago
Damn, you did a huge refactoring without any PR. That's not fair.
My cat rewied it ;)
Or reviewed depends on how many vodka he had yesterday :p
I guess the halt current solution is fine. Can we close this issue?
Since I opened this issue after implementing the current solution I would say no.
Oh sorry, didn't see you made changes regarding this in a totally unrelated PR.
OK then
:+1:
35 is now closed, but I am still not satisfied with the solution. We wait on all currently processing URLs but no report is generated at the end.
I think we could improve this a lot by decoupling the crawler from the tester a bit more :
This way, we will probably fix a race condition that still arise sometimes where the report of one of the URL has not the time to be written because the last item is finished and node exits.
We could also have better exit code management.
And last but not least, URLs currently being processed will have time to generate a report. Only the second Ctrl-C will stop the process immediately.
(And I forget to mention a cleaner implementation)