1
0
Fork 0
mirror of synced 2024-06-27 18:50:47 +12:00

Linter fixes

This commit is contained in:
Matej Baco 2022-11-16 11:54:21 +01:00
parent 9e4a65605c
commit 390f407eb5
2 changed files with 4 additions and 4 deletions

View file

@ -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();
});
});

View file

@ -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();