fix:dockerCleanupjob

This commit is contained in:
Andras Bacsai 2023-08-27 21:36:11 +02:00
parent 75fea4f7c0
commit ab1207e461
2 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,7 @@ protected function schedule(Schedule $schedule): void
$schedule->job(new ResourceStatusJob)->everyMinute();
$schedule->job(new CheckResaleLicenseJob)->hourly();
$schedule->job(new ProxyCheckJob)->everyFiveMinutes();
// $schedule->job(new DockerCleanupJob)->everyTenMinutes();
$schedule->job(new DockerCleanupJob)->everyTenMinutes();
$schedule->job(new InstanceAutoUpdateJob)->everyTenMinutes();
}
$this->check_scheduled_backups($schedule);

View File

@ -32,6 +32,11 @@ public function handle(): void
try {
$servers = Server::all();
foreach ($servers as $server) {
if (
!$server->settings->is_reachable && !$server->settings->is_usable
) {
continue;
}
if (isDev()) {
$docker_root_filesystem = "/";
} else {