mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
Cleanup
This commit is contained in:
parent
0159079608
commit
e850be40b2
1 changed files with 0 additions and 7 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue