Move process functions to Model\Process

- Add start|endProcess functions to Core\Worker
This commit is contained in:
Hypolite Petovan
2018-01-15 19:08:28 -05:00
parent b699637ab7
commit 78ac7afe9c
5 changed files with 104 additions and 56 deletions

View File

@@ -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());