refactor: Update DockerCleanupJob to use server settings for force cleanup

This commit is contained in:
Andras Bacsai 2024-07-18 15:12:52 +02:00
parent 82a5b4c55d
commit 005bd55fb2

View File

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