Change number of running spiders scrapyd

天大地大妈咪最大 提交于 2019-12-13 00:35:27

问题


Hey so I have about 50 spiders in my project and I'm currently running them via scrapyd server. I'm running into an issue where some of the resources I use get locked and make my spiders fail or go really slow. I was hoping their was some way to tell scrapyd to only have 1 running spider at a time and leave the rest in the pending queue. I didn't see a configuration option for this in the docs. Any help would be much appreciated!


回答1:


This can be controlled by scrapyd settings. Set max_proc to 1:

max_proc

The maximum number of concurrent Scrapy process that will be started.



来源:https://stackoverflow.com/questions/24960303/change-number-of-running-spiders-scrapyd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!