Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Last active January 29, 2020 01:57
Show Gist options
  • Save deanwampler/3fc25211f53df4d594d9aa1e3e62a6c2 to your computer and use it in GitHub Desktop.
Save deanwampler/3fc25211f53df4d594d9aa1e3e62a6c2 to your computer and use it in GitHub Desktop.
for i in range(1,40):
ready, not_ready = ray.wait(ids)
print('iteration:', i)
print('Ready length, values: ', len(ready), ray.get(ready))
print('Not Ready length:', len(not_ready))
ids = not_ready
if not ids:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment