Skip to content

Commit

Permalink
fix: run resourceCheck after new serviceCheckJob
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Nov 7, 2024
1 parent 695ab93 commit 33519bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ private function checkResources($schedule): void
} else {
$servers = $this->allServers->get();
}
// $schedule->job(new \App\Jobs\ResourcesCheck)->everyMinute()->onOneServer();

foreach ($servers as $server) {
$serverTimezone = $server->settings->server_timezone;
Expand Down
2 changes: 2 additions & 0 deletions app/Jobs/ServerCheckNewJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Jobs;

use App\Actions\Server\ResourcesCheck;
use App\Actions\Server\ServerCheck;
use App\Models\Server;
use Illuminate\Bus\Queueable;
Expand All @@ -25,6 +26,7 @@ public function handle()
{
try {
ServerCheck::run($this->server);
ResourcesCheck::dispatch($this->server);
} catch (\Throwable $e) {
return handleError($e);
}
Expand Down

0 comments on commit 33519bf

Please sign in to comment.