Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: force cleanup on busy servers

Andras Bacsai2dd17cfac5fa
diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.php
index e637fb6d47..e42caeeada 100644
--- a/app/Jobs/DockerCleanupJob.php
+++ b/app/Jobs/DockerCleanupJob.php
@@ -22,7 +22,9 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue
public ?int $usageBefore = null;
- public function __construct(public Server $server) {}
+ public function __construct(public Server $server)
+ {
+ }
public function handle(): void
{
@@ -35,9 +37,9 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue
return;
}
});
- if ($isInprogress) {
- throw new RuntimeException('DockerCleanupJob: ApplicationDeploymentQueue is not empty, skipping...');
- }
+ // if ($isInprogress) {
+ // throw new RuntimeException('DockerCleanupJob: ApplicationDeploymentQueue is not empty, skipping...');
+ // }
if (! $this->server->isFunctional()) {
return;
}