workers start hook
This commit is contained in:
parent
ef347f65b8
commit
14ac780180
1 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue