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

Scaler's Future.done() does not work as expected #24

Closed
rafa-be opened this issue Sep 30, 2024 · 0 comments
Closed

Scaler's Future.done() does not work as expected #24

rafa-be opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rafa-be
Copy link
Collaborator

rafa-be commented Sep 30, 2024

When checking a Scaler's Future.done() status, without calling Future.result() or Future.add_done_callback(), the call never returns True:

f = c.submit(round, 10.6)

while not f.done():  # will loop forever
    pass

However, adding a callback prevents the issue:

f = c.submit(round, 10.6)
f.add_done_callback(print)

while not f.done():  # will not block indefinitely
    pass
@rafa-be rafa-be added the bug Something isn't working label Sep 30, 2024
@rafa-be rafa-be self-assigned this Sep 30, 2024
rafa-be added a commit to rafa-be/scaler that referenced this issue Oct 2, 2024
rafa-be added a commit to rafa-be/scaler that referenced this issue Oct 3, 2024
rafa-be added a commit to rafa-be/scaler that referenced this issue Oct 3, 2024
rafa-be added a commit to rafa-be/scaler that referenced this issue Oct 3, 2024
rafa-be added a commit to rafa-be/scaler that referenced this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant