Skip to content
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

Too many open files #12

Closed
base698 opened this issue Feb 25, 2016 · 1 comment
Closed

Too many open files #12

base698 opened this issue Feb 25, 2016 · 1 comment

Comments

@base698
Copy link

base698 commented Feb 25, 2016

Adding lots of stuff to the queue results in this error:

**Test case:

from queuelib import FifoDiskQueue, PriorityQueue as DiskPriorityQueue
for i in xrange(0, 100000):
   pq.push(str(i), i)

Traceback (most recent call last):
File "fit.py", line 595, in
File "fit.py", line 557, in init
File "/usr/local/lib/python2.7/site-packages/queuelib/pqueue.py", line 33, in push
File "fit.py", line 541, in
File "/usr/local/lib/python2.7/site-packages/queuelib/queue.py", line 47, in init
File "/usr/local/lib/python2.7/site-packages/queuelib/queue.py", line 67, in _openchunk
IOError: [Errno 24] Too many open files: 'queue-dir-113/q00000'

@dangra
Copy link
Member

dangra commented Mar 21, 2016

hi @base698, you can increase the limit of open files (ulimit) or use the sqlite backend https://github.com/scrapy/queuelib/blob/master/queuelib/queue.py#L181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants