We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test_secede_rejoin_busy
We observed distributed/tests/test_threadpoolexecutor.py::test_secede_rejoin_busy fail over in #5260 (see this CI build)
distributed/tests/test_threadpoolexecutor.py::test_secede_rejoin_busy
___________________________ test_secede_rejoin_busy ____________________________ def test_secede_rejoin_busy(): with ThreadPoolExecutor(2) as e: # Prime threads f1 = e.submit(sleep, 0.1) f2 = e.submit(sleep, 0.1) f1.result() f2.result() def f(): assert threading.current_thread() in e._threads secede() sleep(0.2) assert threading.current_thread() not in e._threads rejoin() assert len(e._threads) == 2 assert threading.current_thread() in e._threads return threading.current_thread() future = e.submit(f) for _ in range(6): e.submit(sleep, 0.4) start = time() special_thread = future.result() stop = time() assert 0.2 < stop - start < 0.6 assert len(e._threads) == 2 assert special_thread in e._threads def f(): sleep(0.01) return threading.current_thread() futures = [e.submit(f) for _ in range(10)] > assert special_thread in {future.result() for future in futures} E assert <Thread(DaskThreadPoolExecutor-14749-575, started daemon 123146059800576)> in {<Thread(DaskThreadPoolExecutor-14749-576, started daemon 123146076590080)>}
The text was updated successfully, but these errors were encountered:
Didn't happen for at least 30days. Closing
Sorry, something went wrong.
Encountered again on #6197
No branches or pull requests
We observed
distributed/tests/test_threadpoolexecutor.py::test_secede_rejoin_busy
fail over in #5260 (see this CI build)The text was updated successfully, but these errors were encountered: