I have several scrapy projects. I deploy all of them with scrapyd. Some of the spiders are slow while others are fast. Now, I want to run fast spiders first. How to do?
I ran into the same issue. But I read the source code of scrapyd
and it seems that scrapyd can handle it. This is not documented, however.
You need to add an argument named priority
with the desired value. The default priority is 0.
For instance:
curl http://localhost:6800/schedule.json -d project=myproject -d spider=somespider -d priority=1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With