The frontend worker can now fork background processes
This commit is contained in:
parent
efb2df41ba
commit
cc5eebd173
2 changed files with 27 additions and 0 deletions
|
@ -14,6 +14,11 @@ function worker_init($a){
|
|||
return;
|
||||
}
|
||||
|
||||
// We don't need the following lines if we can execute background jobs
|
||||
if (function_exists("proc_open")) {
|
||||
return;
|
||||
}
|
||||
|
||||
clear_worker_processes();
|
||||
|
||||
$workers = q("SELECT COUNT(*) AS `processes` FROM `process` WHERE `command` = 'worker.php'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue