Skip to content
Snippets Groups Projects
Commit 6ce2d6ef authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] core: allow signal handlers in multiprocess workers

Because Python only runs signal handlers on the main thread, native
calls (IO or accept(2)) can delay these handlers running. This is
especially problematic when one such call is completely stuck and
we're trying to dump the stack to diagnose the issue.

By running the actual worker's processing in a sub-thread and leaving
the main thread sleeping, worker processes should always be able to
handle signals.

closes odoo/odoo#30688
parent 1dbe4ea0
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment