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 Scheduled Tasks won't execute after deleting resource with scheduled task

Barnabás Schósz1cbd30bd9e92
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index 37266ca5d1..593ce8fe10 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -120,8 +120,8 @@ class Kernel extends ConsoleKernel
return;
}
foreach ($scheduled_tasks as $scheduled_task) {
- $service = $scheduled_task->service()->get();
- $application = $scheduled_task->application()->get();
+ $service = $scheduled_task->service()->first();
+ $application = $scheduled_task->application()->first();
if (!$application && !$service) {
ray('application/service attached to scheduled task does not exist');