1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

workers start hook

This commit is contained in:
shimon 2023-10-25 12:10:30 +03:00
parent ef347f65b8
commit 14ac780180

View file

@ -275,10 +275,9 @@ $worker
try {
$workerStart = $worker->getWorkerStart();
} catch (\Throwable $error) {
$worker->workerStart()
->action(function () use ($workerName) {
Console::info("Worker $workerName started");
});
$worker->workerStart();
} finally {
Console::info("Worker $workerName started");
}
$worker->start();