-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pyaerocom tests fail with SystemError: (11, 'Resource temporarily unavailable')
in tests
#46
Comments
It looks like aiofile uses a ThreadPoolExecutor internally to read the files and is therefore running into a thread limit. Reads using aiofile are also much slower compared to synchronous reading: Eg. this quick benchmark with 10 reads each of files of different sizes:
I think that maybe changing aerovaldb to do synchronous IO may be worthwhile, and I think it also would solve this issue. Since we support caching, I don't think async is critical to the aeroval api anymore. What do you think @heikoklein ? |
We could add semaphores to limit resource usage. We had never a requirement on Please make a test on aeroval-api with |
Closed by #47 |
Running the pyaerocom tests on the PR to implement writing with aerovaldb fails with the error
SystemError: (11, 'Resource temporarily unavailable')
when running all tests. Repeating the test running only a single test allows the test to succeed.Example output from Github Actions: https://github.com/metno/pyaerocom/actions/runs/9888455650/job/27318172756
Excerpt from output:
The text was updated successfully, but these errors were encountered: