From 91bf38b63d82056c27a268bbea0088c61f6756fc Mon Sep 17 00:00:00 2001 From: Boy132 Date: Thu, 6 Jun 2024 15:53:29 +0200 Subject: [PATCH 1/2] fix schedules running every minute --- app/Console/Commands/Schedule/ProcessRunnableCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Schedule/ProcessRunnableCommand.php b/app/Console/Commands/Schedule/ProcessRunnableCommand.php index 687752a2d3..0ebda2cdb1 100644 --- a/app/Console/Commands/Schedule/ProcessRunnableCommand.php +++ b/app/Console/Commands/Schedule/ProcessRunnableCommand.php @@ -24,7 +24,7 @@ public function handle(): int ->whereRelation('server', fn (Builder $builder) => $builder->whereNull('status')) ->where('is_active', true) ->where('is_processing', false) - ->whereDate('next_run_at', '<=', Carbon::now()->toDateString()) + ->whereDate('next_run_at', '<=', Carbon::now()->toDateTimeString()) ->get(); if ($schedules->count() < 1) { From eb99f53d879c5cff4e565baba837263fc64c724b Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Fri, 7 Jun 2024 00:08:41 -0400 Subject: [PATCH 2/2] Reset this for now --- app/Filament/Resources/ServerResource/Pages/CreateServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Resources/ServerResource/Pages/CreateServer.php b/app/Filament/Resources/ServerResource/Pages/CreateServer.php index a4b73abe53..7973349ebf 100644 --- a/app/Filament/Resources/ServerResource/Pages/CreateServer.php +++ b/app/Filament/Resources/ServerResource/Pages/CreateServer.php @@ -583,7 +583,7 @@ public function form(Form $form): Form Forms\Components\Hidden::make('io') ->helperText('The IO performance relative to other running containers') ->label('Block IO Proportion') - ->default(0), + ->default(500), Forms\Components\Grid::make() ->columns(4)