Remove job reigstration and name.
Этот коммит содержится в:
@@ -45,7 +45,6 @@ import (
|
|||||||
"github.com/mattermost/mattermost-server/v6/jobs/import_process"
|
"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_file"
|
||||||
"github.com/mattermost/mattermost-server/v6/jobs/last_accessible_post"
|
"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/migrations"
|
||||||
"github.com/mattermost/mattermost-server/v6/jobs/notify_admin"
|
"github.com/mattermost/mattermost-server/v6/jobs/notify_admin"
|
||||||
"github.com/mattermost/mattermost-server/v6/jobs/product_notices"
|
"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),
|
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
|
s.platform.Jobs = s.Jobs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ const (
|
|||||||
JobTypeLastAccessibleFile = "last_accessible_file"
|
JobTypeLastAccessibleFile = "last_accessible_file"
|
||||||
JobTypeUpgradeNotifyAdmin = "upgrade_notify_admin"
|
JobTypeUpgradeNotifyAdmin = "upgrade_notify_admin"
|
||||||
JobTypeTrialNotifyAdmin = "trial_notify_admin"
|
JobTypeTrialNotifyAdmin = "trial_notify_admin"
|
||||||
JobTypeLicenseTrueUpReview = "license_true_up_review"
|
|
||||||
|
|
||||||
JobStatusPending = "pending"
|
JobStatusPending = "pending"
|
||||||
JobStatusInProgress = "in_progress"
|
JobStatusInProgress = "in_progress"
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user