Linter fixes
This commit is contained in:
parent
9e4a65605c
commit
390f407eb5
|
@ -96,7 +96,7 @@ $pools = $register->get('pools');
|
|||
$connection = $pools->get('queue')->pop()->getResource();
|
||||
$workerNumber = swoole_cpu_num() * intval(App::getEnv('_APP_WORKER_PER_CORE', 6));
|
||||
|
||||
if(empty(App::getEnv('QUEUE'))) {
|
||||
if (empty(App::getEnv('QUEUE'))) {
|
||||
throw new Exception('Please configure "QUEUE" environemnt variable.');
|
||||
}
|
||||
|
||||
|
@ -145,4 +145,4 @@ $server
|
|||
Console::error('[Error] Line: ' . $error->getLine());
|
||||
|
||||
$register->get('pools')->reclaim();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -208,8 +208,8 @@ class BuildsV1 extends Worker
|
|||
$schedule
|
||||
->setAttribute('schedule', $function->getAttribute('schedule'))
|
||||
->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment')));
|
||||
|
||||
|
||||
|
||||
|
||||
Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule));
|
||||
} catch (\Throwable $th) {
|
||||
$endTime = DateTime::now();
|
||||
|
|
Loading…
Reference in a new issue