[*] MQ переделка на воркеры
This commit is contained in:
1 parent
2a59c4c1d8
commit
7217850315
6 files changed
+46
-23
No files matched your search
+2
-9
@@ -7,12 +7,5 @@
|
||||
}
|
||||
require_once __DIR__ . '/bootstrap.php';
|
||||
|
||||
use Core\Helpers\SystemFunctions;
|
||||
use Core\Models\MQ;
|
||||
|
||||
try {
|
||||
(new MQ())->run();
|
||||
} catch (Throwable $t) {
|
||||
SystemFunctions::sendTelegram('CRON: Произошла ошибка' . PHP_EOL . $t->getMessage() . PHP_EOL . 'File: ' . $t->getFile() . PHP_EOL . 'Line: ' . $t->getLine());
|
||||
echo 'Error: ' . $t->getMessage() . ' / line: ' . $t->getLine();
|
||||
}
|
||||
// Запускаем воркер диспетчера очереди
|
||||
exec('(php -f ' . __DIR__ . '/runtime/threadsWorker.php & ) >> /dev/null 2>&1');
|
||||
Reference in new issue
Block a user