Разбор очереди на HTTP-хите без отдельного демона (QUEUE_PROCESS_ON_HIT)
This commit is contained in:
1 parent
03d91481d2
commit
bb55f578ef
7 files changed
+124
-1
No files matched your search
@@ -23,6 +23,7 @@ use Rsgrinko\Proton\Support\Config;
|
||||
use Rsgrinko\Proton\Support\Logger;
|
||||
use Rsgrinko\Proton\Support\Maintenance;
|
||||
use Rsgrinko\Proton\Support\Metrics;
|
||||
use Rsgrinko\Proton\Queue\HitWorker;
|
||||
use Rsgrinko\Proton\Support\ProtonException;
|
||||
use Rsgrinko\Proton\Support\RequestId;
|
||||
use Rsgrinko\Proton\Support\Settings;
|
||||
@@ -82,6 +83,10 @@ final class Kernel
|
||||
$this->logger->warning('Не удалось записать показатели', ['error' => $e->getMessage()]);
|
||||
}
|
||||
|
||||
// Подстраховка без отдельного демона — выключено по умолчанию,
|
||||
// см. Queue\HitWorker
|
||||
HitWorker::run();
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user