Remove job reigstration and name.

Этот коммит содержится в:
Conor Macpherson
2023-01-04 13:45:21 -05:00
родитель a8fc0ddf17
Коммит bdd7cb4638
2 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@@ -45,7 +45,6 @@ import (
"github.com/mattermost/mattermost-server/v6/jobs/import_process"
"github.com/mattermost/mattermost-server/v6/jobs/last_accessible_file"
"github.com/mattermost/mattermost-server/v6/jobs/last_accessible_post"
"github.com/mattermost/mattermost-server/v6/jobs/license_true_up"
"github.com/mattermost/mattermost-server/v6/jobs/migrations"
"github.com/mattermost/mattermost-server/v6/jobs/notify_admin"
"github.com/mattermost/mattermost-server/v6/jobs/product_notices"
@@ -1530,12 +1529,6 @@ func (s *Server) initJobs() {
notify_admin.MakeScheduler(s.Jobs, s.License(), model.JobTypeTrialNotifyAdmin),
)
s.Jobs.RegisterJobType(
model.JobTypeLicenseTrueUpReview,
license_true_up.MakeWorker(s.Jobs, s.License(), New(ServerConnector(s.Channels())), s.telemetryService),
license_true_up.MakeScheduler(s.Jobs, s.License(), s.telemetryService),
)
s.platform.Jobs = s.Jobs
}

Просмотреть файл

@@ -31,7 +31,6 @@ const (
JobTypeLastAccessibleFile = "last_accessible_file"
JobTypeUpgradeNotifyAdmin = "upgrade_notify_admin"
JobTypeTrialNotifyAdmin = "trial_notify_admin"
JobTypeLicenseTrueUpReview = "license_true_up_review"
JobStatusPending = "pending"
JobStatusInProgress = "in_progress"