You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Branch master Target 0.15.0 Current Behavior
Any calls to fle_utils.django_utils.command.call_command_subprocess() under OSX will use the CommandProcess class that uses the multiprocessing module.
As per eGenix's documentation on PyRun, they don't include the _multiprocessing module so calls to such will crash the ka-lite server.
Manifestations of failures include:
video downloads fails
language pack download fails
calls to cron, securesync, device registrations fails
Expected Behavior
We must build PyRun to include the multiprocessing module.
Possible Solution/s
For now, use the subprocess module like the one on call_outside_command_with_output().
Related Issues
Here are the related issues affected by this:
References
These references are here to confirm that multiprocessing with Django must be done carefully. They suggests to close the database connection before spawning a child process but that's not our intended solution here:
Branch master
Target 0.15.0
Current Behavior
Any calls to
fle_utils.django_utils.command.call_command_subprocess()
under OSX will use theCommandProcess
class that uses themultiprocessing
module.As per eGenix's documentation on PyRun, they don't include the
_multiprocessing
module so calls to such will crash the ka-lite server.Manifestations of failures include:
cron
,securesync
, device registrations failsExpected Behavior
We must build PyRun to include the
multiprocessing
module.Possible Solution/s
For now, use the
subprocess
module like the one oncall_outside_command_with_output()
.Related Issues
Here are the related issues affected by this:
References
These references are here to confirm that multiprocessing with Django must be done carefully. They suggests to close the database connection before spawning a child process but that's not our intended solution here:
The text was updated successfully, but these errors were encountered: