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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
chore: Skip scheduled tasks if application or service is not running
Andras Bacsai5ad08791ea3f
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.phpindex 89d679a476..d67a267206 100644--- a/app/Console/Kernel.php+++ b/app/Console/Kernel.php@@ -138,7 +138,18 @@ class Kernel extends ConsoleKernel$scheduled_task->delete();continue;}-+ if ($application) {+ if (str($application->status)->contains('running') === false) {+ ray('application not running, skipping');+ continue;+ }+ }+ if ($service) {+ if (str($service->status)->contains('running') === false) {+ ray('service not running, skipping');+ continue;+ }+ }if (isset(VALID_CRON_STRINGS[$scheduled_task->frequency])) {$scheduled_task->frequency = VALID_CRON_STRINGS[$scheduled_task->frequency];}