Reminder that on Linux multiprocessing is broken out of the box, and you need to configure it to not freeze your process at random: https://pythonspeed.com/articles/python-multiprocessing/
(This will be fixed in future Python versions, 3.14 maybe.)
(This will be fixed in future Python versions, 3.14 maybe.)
from multiprocessing import set_start_method
set_start_method("spawn")