diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-31 17:59:09 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-22 11:56:17 +0100 |
commit | ba0134c54f2042344bc7f074130d5909dd8aae8f (patch) | |
tree | bcb4895977fbb4b2ba3dd95c86055383793cbfd7 /config/config.sample.php | |
parent | c43730238fb648b2943762da172f55cbfd28114d (diff) | |
download | nextcloud-server-ba0134c54f2042344bc7f074130d5909dd8aae8f.tar.gz nextcloud-server-ba0134c54f2042344bc7f074130d5909dd8aae8f.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/config.sample.php')
-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 783d9daea39..521aa28598a 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1209,6 +1209,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 |