puppeteer-cluster
puppeteer-cluster copied to clipboard
How to pause all the workers for some time?
hello I am using this library in my porject which is doing awesome job for me.
I am trying to rotate the IP which takes almost 5s to 10s. I want to pause all the workers for that particular time.
Is there any option for this?
You could create a custom concurrency implementation. But the way to implement this might change in the not-too-far (at least that's what I hope) future, so I do not recommend that at this point in time.
Other than that there is unfortunately no way to do that, sorry.
I need this functionality too.
I need a way to pause the workers when an error is encountered so that a user can decide how to proceed. If theres one error in my setup, all the workers will encounter the same error. I tried putting an await function in the taskerror, but that didn't work.
I'll open it again then. I might add a pause()
function in the future as it seems to be a common use case.
News of this feature?