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

await on empty set when session is completely executed #516

Closed
abingham opened this issue Jul 26, 2021 · 0 comments
Closed

await on empty set when session is completely executed #516

abingham opened this issue Jul 26, 2021 · 0 comments

Comments

@abingham
Copy link
Contributor

abingham commented Jul 26, 2021

This is based on issues initially reported in #515.

If you initialize and fully execute a session, subsequent attempts to execute the session (an operation which is allowed and supported) result in an exception:

$ cosmic-ray init config.toml session.sqlite
$ cosmic-ray exec config.toml session.sqlite
$ cosmic-ray exec config.toml session.sqlite
...
File "/Users/abingham/repos/sixty-north/cosmic-ray/src/cosmic_ray/distribution/http.py", line 87, in _process
    done, pending = await asyncio.wait(fetchers.keys(), return_when=asyncio.ALL_COMPLETED)
  File "/Users/abingham/.pyenv/versions/3.9.1/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py", line 392, in wait
    raise ValueError('Set of coroutines/Futures is empty.')
ValueError: Set of coroutines/Futures is empty.
$

This has nothing to do with Windows as I initially suspected. It's just some bad logic/assumption in the execution routines.

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