mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
fix: Handle null and empty disk usage in DockerCleanupJob
This commit is contained in:
parent
a2150f2f7d
commit
961ba49d89
@ -37,7 +37,7 @@ public function handle(): void
|
||||
}
|
||||
|
||||
$this->usageBefore = $this->server->getDiskUsage();
|
||||
if ($this->usageBefore === null) {
|
||||
if (str($this->usageBefore)->isEmpty() || $this->usageBefore === null || $this->usageBefore === 0) {
|
||||
Log::info('DockerCleanupJob force cleanup on '.$this->server->name);
|
||||
CleanupDocker::run(server: $this->server, force: true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user