-
Notifications
You must be signed in to change notification settings - Fork 31
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
Backend #108
Conversation
It looks like there are style warnings for some files. Did you install |
I tried to look into this today. Unfortunately I did not get very far.
but (when testing) also variations of
I tried to reproduce a minimal working example, but from dask.distributed import Client, as_completed
import stopit
def stopit_work(base):
with stopit.ThreadingTimeout(1) as c_mgr:
do_compute = base
while True:
do_compute *= base
do_compute /= base
if not c_mgr:
return "Stopped due to timeout"
return "Done"
def main(func):
with stopit.ThreadingTimeout(5) as c_mgr:
with Client() as client:
ac = as_completed(client.map(func, range(1, 10_000)))
for future in ac:
print(future.result())
print("done")
if __name__ == '__main__':
main(stopit_work) seems to function as expected. I also tried to modify |
Also my host machine seems to close connections |
Looks like the |
Closing this PR as the With your permission I will also remove the stale branch. |
Thanks for the effort and first exploration though, it did still help in creating the second iteration 👍 |
Replacing custom backend with dask distributed