You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Spors edited this page Dec 19, 2023
·
2 revisions
Classes in file tasks/wdfcrontask.class.php
abstract class WdfCronTask
Entrypoint for a central cron handler.
To use this implement your own 'cron' class extenting from WdfCronTask and
implement the 'Process' method. It receives the interval in minutes
that triggered the current run.
Then crontab -e and add a minutley call to the task like this:
cd /your/docroot && php index.php yourcronclassname
Note that in (difference to cron) this will not run each fill X minutes, but each X minutes.
Next run will be scheduled after current run is over, so running a long task hourly will result
in more and more shifting away from the complete hour.