mirror of
https://github.com/itflow-org/itflow
synced 2026-09-11 09:15:12 +00:00
Feature: queued Updates which now eliminates the need for shell_exec from the webui, but if enabled you can still update from the webui the old way too
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
* Every job here checks config_enable_cron in its own header and stops itself when that
|
||||
* switch is off. It is not a dispatcher-level gate - a new job has to make the check
|
||||
* itself, and a job that skips it will keep running on an install that thinks cron is off.
|
||||
*
|
||||
* Order matters: the dispatcher works down this list. app_update replaces the files every
|
||||
* job is loaded from, so it stays at the end and ends the cycle behind itself.
|
||||
*/
|
||||
|
||||
function cronJobRegistry(): array
|
||||
@@ -99,6 +102,16 @@ function cronJobRegistry(): array
|
||||
'schedule' => 'Daily',
|
||||
'daily_at' => '03:30',
|
||||
],
|
||||
[
|
||||
'name' => 'app_update',
|
||||
'label' => 'Application Update',
|
||||
'script' => 'app_update.php',
|
||||
'description' => 'Runs an update queued from Maintenance > Update. Does nothing unless one is queued.',
|
||||
'schedule' => 'Daily',
|
||||
'daily_at' => '05:00',
|
||||
'enabled' => 0,
|
||||
'interval_safe' => false,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user