Add database probing on wakeup
This commit is contained in:
parent
6215cc284e
commit
cb856b98c1
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ $stopOnZero = &$flags->bool('stop-on-zero', false, 'Should this process stop on
|
|||
|
||||
$flags->parse();
|
||||
|
||||
$databases = App::Instance()->get(\Benzine\ORM\Connection\Databases::class)
|
||||
->waitForConnectivity();
|
||||
|
||||
if(class_exists($worker)){
|
||||
$workerClass = $worker;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue