provincial-silver
provincial-silver2y ago

more than one request queue

Is it possible to create two request queues per .run()?
2 Replies
solid-orange
solid-orange2y ago
Hi @bmax, you can create a named queue. If you are running it on a platform and want it to be tied to a specific Actor run, good practice is to use a run ID in the name. You may also drop the queue after finishing, otherwise the queue will not get deleted at all (also applies only if you are using the Apify platform).
provincial-silver
provincial-silverOP2y ago
await web_crawler.run()
web_crawler.requestQueue = web_crawler_next
await web_crawler.run()
await web_crawler.run()
web_crawler.requestQueue = web_crawler_next
await web_crawler.run()
I ended up doing this. (web_crawler_next being a differently named named queue)

Did you find this page helpful?