diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-31 17:59:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-07 13:54:54 +0100 |
commit | 3fd55cb4df80b6434cc5f028f80f1419b3f79202 (patch) | |
tree | cdfdb4ee1a290b2a79da940f6ad65ba607a81ac9 /config | |
parent | b765f79368885ace29d8cd122144a1357435cfbb (diff) | |
download | nextcloud-server-3fd55cb4df80b6434cc5f028f80f1419b3f79202.tar.gz nextcloud-server-3fd55cb4df80b6434cc5f028f80f1419b3f79202.zip |
Allow sysadmins to define a maintenance window where heavier jobs can run
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 1e883aef358..f861df2a7ce 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1214,6 +1214,20 @@ $CONFIG = [ */ 'maintenance' => false, +/** + * UTC Hour for maintenance windows + * + * Some background jobs only run once a day. When an hour is defined for this config, + * the background jobs which advertise themselves as not time sensitive will be + * delayed during the "working" hours and only run in the 4 hours after the given time. + * This is e.g. used for activity expiration, suspicious login training and update checks. + * + * A value of 1 e.g. will only run these background jobs between 01:00am UTC and 05:00am UTC. + * + * Defaults to ``100`` which disables the feature + */ +'maintenance_window_start' => 1, + /** * SSL |