Move process functions to Model\Process
- Add start|endProcess functions to Core\Worker
This commit is contained in:
parent
b699637ab7
commit
78ac7afe9c
5 changed files with 104 additions and 56 deletions
|
@ -29,7 +29,7 @@ function worker_init($a){
|
|||
return;
|
||||
}
|
||||
|
||||
$a->start_process();
|
||||
Worker::startProcess();
|
||||
|
||||
logger("Front end worker started: ".getmypid());
|
||||
|
||||
|
@ -50,7 +50,7 @@ function worker_init($a){
|
|||
|
||||
Worker::unclaimProcess();
|
||||
|
||||
$a->end_process();
|
||||
Worker::endProcess();
|
||||
|
||||
logger("Front end worker ended: ".getmypid());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue