-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add spiderqueue configuration option #476
Conversation
Codecov Report
@@ Coverage Diff @@
## master #476 +/- ##
==========================================
- Coverage 87.31% 87.30% -0.01%
==========================================
Files 41 41
Lines 1876 1875 -1
==========================================
- Hits 1638 1637 -1
Misses 238 238
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Probably not the correct solution, as different types of queues might need more arguments like redis_host, redis_port etc not just the DB path. I'm wondering what would be the quickest and simplest solution to quickly improve scrapyd performance for those who run high polling rates. Maybe add support :memory: as dbpath so sqlite runs in memory? Currently the code makes it always a file based solution but scrapyd/spiderqueue.py defaults to :memory: correctly but that can never happen because upstream code always sets a file. |
Ah, good call, we need to move the For Redis, PostgreSQL, etc. we can have dbs_dir still be a single string, e.g. a connection string like Edit: Or, we can pass the full |
I would say that its use of Edit: Nevermind, misread some other documentation:
|
…o spider queue implementation. Respect :memory: and URL values for dbs_dir.
Okay, custom queues should be more extensible with the latest commit. |
@jpmckinney this looks good. What else need to be done to get it merged? |
…an scrapyd.sqlite.initialize function (unnecessary support for dbs_dir URLs added in #476)
closes #197
See #475 for updating the default spider queue.