mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Linter fixes
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user