Giter Club home page Giter Club logo

Comments (3)

ogrisel avatar ogrisel commented on August 20, 2024

Similar problems:

_____ 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.

ogrisel avatar ogrisel commented on August 20, 2024

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.

ogrisel avatar ogrisel commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.