eastern-cyan•2y ago
isFinishedFunction, check other crawler?
Hello,
two questions.
Is there a way to call this.isFinishedFunction so it calls the original function but also just add another web_crawler_queue isFinished on top of it? the uncommented out function I tried, worked somewhat, but, after a long running web_crawler_queue finished, it just kept giving me a stalled error, and, this crawler that this function belongs to never finished.
3 Replies
@bmax just advanced to level 3! Thanks for your contributions! 🎉
There is no original function since you are putting your own there in options. If you would want to use original, you would have to monkeypatch it after defining.
eastern-cyanOP•2y ago
got it, will try this
my code above almost works @Lukas Krivka but for some reason doesn't all the time..
which is basically is my current request_queue finished and is my other crawler finished
but sometimes it doesn't pick up and I'll get an log along the lines of : "x, y, z ahs been stalled for 350 seconds"
this:
RNING","msg":"RequestQueue: The request queue seems to be stuck for 370s, resetting internal state.","inProgress":[]}