Commits on Source (6)
-
Reiter, Christoph authored
splitting it out of the cron command. Makes it a bit clearer
1bdb01eb -
Reiter, Christoph authored
This will force run all cron commands even if they aren't due. This can be helpful in case of development/debugging. And we want to change the default of cron not running at the beginning when the state/cache is missing i.e. when the api is re-deployed. This allows the admin to force a run in case it is known that the api was offline for some time and cron jobs are needed.
436fda8b -
Reiter, Christoph authored
In case the API is started the first time, or it is re-deployed and the cache is cleared/removed the API doesn't know when the cron jobs were last checked. Up until now it would assume that the last run was so long ago that all jobs are due and run all jobs. This has the downside that on a re-deploy all jobs are run, despite most of them not needing to. This changes the defaults to not run any jobs if there is no previous check recorded. If the admin still wants to force run all jobs there is the "--force" option that can be passed to the cron command.
e362b615 -
Reiter, Christoph authored
This shows a simple list of jobs, their class, name, interval, and when they are going to run next.
5f7b5e3c -
Reiter, Christoph authored
Move the job execution into manager so it can be tested
f05c05fd -
Reiter, Christoph authored
src/Cron/CronListCommand.php
0 → 100644
src/Cron/CronManager.php
0 → 100644
tests/Cron/CronJob.php
0 → 100644