mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-08 20:52:20 +00:00
refactor: Update DockerCleanupJob to use server settings for force cleanup
This commit is contained in:
@@ -40,7 +40,8 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user