Skip to content

Resolve deprecation warning about multi-threaded use of fork #40

Closed
@AlanCoding

Description

@AlanCoding

You can see the following warning in test output:

tests/integration/test_main.py: 42 warnings
  /usr/lib64/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=125488) is multi-threaded, use of fork() may lead to deadlocks in the child.
    self.pid = os.fork()

This is related to a broader python issue, and the default method will actually change in python 3.14.

https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods

Note The default start method will change away from fork in Python 3.14. Code that requires fork should explicitly specify that via get_context() or set_start_method().

Anecdotally, there are still a sense of fragility where deadlocks can happen for the subprocesses starting, stopping, and other things. Addressing this issue should go a very long way to establishing stability.

The outcome this issue seeks is that the deprecation warning is addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MVPminimum set of issues to fixawxneeded for AWX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions