diff --git a/server/channels/app/server.go b/server/channels/app/server.go index 4a6f59ec22..1f9d4169c8 100644 --- a/server/channels/app/server.go +++ b/server/channels/app/server.go @@ -511,12 +511,6 @@ func NewServer(options ...Option) (*Server, error) { } if s.runEssentialJobs { - s.Go(func() { - appInstance := New(ServerConnector(s.Channels())) - s.runLicenseExpirationCheckJob() - runDNDStatusExpireJob(appInstance) - runPostReminderJob(appInstance) - }) s.runJobs() } @@ -538,6 +532,12 @@ func NewServer(options ...Option) (*Server, error) { } func (s *Server) runJobs() { + s.Go(func() { + appInstance := New(ServerConnector(s.Channels())) + s.runLicenseExpirationCheckJob() + runDNDStatusExpireJob(appInstance) + runPostReminderJob(appInstance) + }) s.Go(func() { runSecurityJob(s) })