From 005bd55fb22067cd92622b7177e203cf6b0592fd Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 18 Jul 2024 15:12:52 +0200 Subject: [PATCH] refactor: Update DockerCleanupJob to use server settings for force cleanup --- app/Jobs/DockerCleanupJob.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.php index edc798bc7..f99a65b5d 100644 --- a/app/Jobs/DockerCleanupJob.php +++ b/app/Jobs/DockerCleanupJob.php @@ -40,7 +40,8 @@ public function handle(): void if (! $this->server->isFunctional()) { return; } - if ($this->server->is_force_cleanup_enabled) { + if ($this->server->settings->is_force_cleanup_enabled) { + Log::info('DockerCleanupJob force cleanup on '.$this->server->name); CleanupDocker::run(server: $this->server, force: true); return;