// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package plugins import ( "time" "github.com/mattermost/mattermost/server/public/model" "github.com/mattermost/mattermost/server/v8/channels/jobs" ) const schedFreq = 24 * time.Hour func MakeScheduler(jobServer *jobs.JobServer) *jobs.PeriodicScheduler { isEnabled := func(cfg *model.Config) bool { return true } return jobs.NewPeriodicScheduler(jobServer, model.JobTypePlugins, schedFreq, isEnabled) }