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

OSError: [Errno 24] Too many open files: 'oaib.txt' #15

Open
ollieglass opened this issue Aug 21, 2024 · 0 comments
Open

OSError: [Errno 24] Too many open files: 'oaib.txt' #15

ollieglass opened this issue Aug 21, 2024 · 0 comments

Comments

@ollieglass
Copy link

redacted stack trace:

  File "/Users/.../.asdf/installs/python/3.12.4/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/.../.asdf/installs/python/3.12.4/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/.../.asdf/installs/python/3.12.4/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/.../summarise_pdfs.py", line 20, in create_bullet_points
    return await batch.run()
           ^^^^^^^^^^^^^^^^^
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 405, in run
    await gather(*self.__workers)
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 294, in __worker
    proceed = self._next(i)
              ^^^^^^^^^^^^^
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 267, in _next
    self.log(f"REQUESTS: {self.__queue.qsize()}", worker=i)
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 141, in log
    with open(self.logdir, "a") as file:
         ^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 24] Too many open files: 'oaib.txt'

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

1 participant