Comments (3)
Similar problems:
- #346
ERROR at teardown of TestsProcessPoolLokyExecutor.test_killed_child
:
https://dev.azure.com/joblib/loky/_build/results?buildId=1751&view=logs&j=0bee2fdb-ff38-51c4-8e0e-ffcd1c318aed&t=9bcb10dc-bb71-5de7-d670-7b816012a9d5
_____ ERROR at teardown of TestsProcessPoolLokyExecutor.test_killed_child ______
self = <tests.test_process_executor_loky.TestsProcessPoolLokyExecutor object at 0x7fd459298a60>
method = <bound method ExecutorTest.test_killed_child of <tests.test_process_executor_loky.TestsProcessPoolLokyExecutor object at 0x7fd459298a60>>
def teardown_method(self, method):
# Make sure executor is not broken if it should not be
executor = getattr(self, 'executor', None)
if executor is not None:
expect_broken_pool = hasattr(method, "broken_pool") # old pytest
for mark in getattr(method, "pytestmark", []):
if mark.name == "broken_pool":
expect_broken_pool = True
is_actually_broken = executor._flags.broken is not None
> assert is_actually_broken == expect_broken_pool
E AssertionError
executor = <loky.process_executor.ProcessPoolExecutor object at 0x7fd456a8efb0>
expect_broken_pool = True
is_actually_broken = False
mark = Mark(name='broken_pool', args=(), kwargs={})
method = <bound method ExecutorTest.test_killed_child of <tests.test_process_executor_loky.TestsProcessPoolLokyExecutor object at 0x7fd459298a60>>
self = <tests.test_process_executor_loky.TestsProcessPoolLokyExecutor object at 0x7fd459298a60>
from loky.
It seems that we might have a race condition with the executor manager thread that is responsible to flag the process pool executor as broken. Let me try to fix this teardown_method
.
from loky.
Actually #328 (comment) is not the same problem as the traceback in the description:
- the above problem (on
test_killed_child
) is about not detecting a broken executor in time; - while the original issue (on
test_map_chunksize
) report is about a timeout acquiring a lock when shutting down a non-broken executor.
from loky.
Related Issues (20)
- SemLock._cleanup triggers an unraisable exception in Finalizer when a semaphore is manually unlinked first
- Race condition in resource_tracker in multithreaded access to a shared reusable executor
- Nested loky calls can cause resource_tracker to detect leaked semaphores HOT 1
- loky backend confuses timings HOT 1
- Stdout is not captured inside Jupyter notebook due to buffering
- Implement max_tasks_per_child HOT 2
- Is it safe to use ProcessPoolExecutor from loky? HOT 5
- MAX_WINDOWS_WORKERS HOT 2
- DOC error in documentation around env vars
- Useless line
- Series of teardown failures and final deadlock in pytest observed on the CI
- Unstable test_processes_crash_handling_after_executor_gc HOT 8
- AssertionError: notify: Should not have been able to acquire _wait_semaphore on Python 3.11 / Windows HOT 1
- BUG call_queue size is not updated on resize HOT 1
- BUG test_no_crash_max_workers_on_windows fail to shutdown on CI
- BUG running pytest with `-s` option makes the tests fail
- Loky test suite is much slower on macOS than on Linux or Windows HOT 3
- Docs suggest that `loky.set_start_method` exists
- `exit` inside a loky-submitted function causes the main process to exit HOT 2
- Error with dynamically imported functions. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loky.