forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
719 B
26 lines
719 B
2 years ago
|
<?php
|
||
|
|
||
|
use service\ServiceQueue;
|
||
|
use service\ServiceSupervisorPBx;
|
||
|
use service\ServiceTimeout;
|
||
|
|
||
|
require __DIR__ . '/../vendor/autoload.php';
|
||
|
include __DIR__ . '/../includes/config.php';
|
||
|
|
||
|
$sevice_timeout = new ServiceTimeout();
|
||
|
$servce_queue = new ServiceQueue();
|
||
|
$servce_supervisor = new ServiceSupervisorPBx();
|
||
|
while (true) {
|
||
|
try {
|
||
|
echo "executar servce_supervisor \n";
|
||
|
$servce_supervisor->run();
|
||
|
echo "executar sevice_timeout \n";
|
||
|
$sevice_timeout->run();
|
||
|
echo "executar servce_queue \n";
|
||
|
$servce_queue->run();
|
||
|
sleep(3);
|
||
|
} catch (\Throwable $th) {
|
||
|
sleep(3);
|
||
|
logger('run_service')->info($th->getMessage());
|
||
|
}
|
||
|
}
|