From e850be40b2439943365685276cdcd00343a844c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 23 Sep 2022 06:21:10 +0000 Subject: [PATCH] Cleanup --- app/workers/functions.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 234ed56631..31b74a11ca 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -150,21 +150,14 @@ class FunctionsV1 extends Worker throw new Exception('Function not found (' . $function->getId() . ')'); } - \var_dump("Got here"); - if ($functionOriginal->getAttribute('schedule') !== $function->getAttribute('schedule')) { // Schedule has changed from previous run, ignore this run. return; } - - \var_dump("Got here 2"); - if ($functionOriginal->getAttribute('scheduleUpdatedAt') !== $function->getAttribute('scheduleUpdatedAt')) { // Double execution due to rapid cron changes, ignore this run. return; } - \var_dump("Got here 3"); - $cron = new CronExpression($function->getAttribute('schedule')); $next = DateTime::format($cron->getNextRunDate());