diff options
Diffstat (limited to 'app/license.go')
-rw-r--r-- | app/license.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/license.go b/app/license.go index 18836c571..cacc71524 100644 --- a/app/license.go +++ b/app/license.go @@ -89,6 +89,16 @@ func (a *App) SaveLicense(licenseBytes []byte) (*model.License, *model.AppError) a.ReloadConfig() a.InvalidateAllCaches() + // start job server if necessary - this handles the edge case where a license file is uploaded, but the job server + // doesn't start until the server is restarted, which prevents the 'run job now' buttons in system console from + // functioning as expected + if *a.Config().JobSettings.RunJobs { + a.Jobs.StartWorkers() + } + if *a.Config().JobSettings.RunScheduler { + a.Jobs.StartSchedulers() + } + return license, nil } |