Add database probing on wakeup

This commit is contained in:
Greyscale 2022-07-03 03:28:39 +02:00
parent 6215cc284e
commit cb856b98c1
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -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 {