summaryrefslogtreecommitdiffstats
path: root/jobs
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-06-26 18:30:33 +0100
committerHarrison Healey <harrisonmhealey@gmail.com>2018-06-26 13:30:33 -0400
commit60359b4bae6d7b401f7b8b9f21685bde8a17ac1a (patch)
treea71631025bd66602338a6b6bbaf9d587608bc26b /jobs
parentecefa6cdd1e7376046bbec82c1b47f7756fea646 (diff)
downloadchat-60359b4bae6d7b401f7b8b9f21685bde8a17ac1a.tar.gz
chat-60359b4bae6d7b401f7b8b9f21685bde8a17ac1a.tar.bz2
chat-60359b4bae6d7b401f7b8b9f21685bde8a17ac1a.zip
MM-10269: Make jobserver work without restart. (#9005)
Diffstat (limited to 'jobs')
-rw-r--r--jobs/workers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/jobs/workers.go b/jobs/workers.go
index 67ab43241..9909e035c 100644
--- a/jobs/workers.go
+++ b/jobs/workers.go
@@ -95,6 +95,8 @@ func (workers *Workers) Start() *Workers {
}
func (workers *Workers) handleConfigChange(oldConfig *model.Config, newConfig *model.Config) {
+ mlog.Debug("Workers received config change.")
+
if workers.DataRetention != nil {
if (!*oldConfig.DataRetentionSettings.EnableMessageDeletion && !*oldConfig.DataRetentionSettings.EnableFileDeletion) && (*newConfig.DataRetentionSettings.EnableMessageDeletion || *newConfig.DataRetentionSettings.EnableFileDeletion) {
go workers.DataRetention.Run()