From c36e85c9126b921cf00e578ac70c1f1ee0153abd Mon Sep 17 00:00:00 2001 From: Daniel Schalla Date: Wed, 10 Oct 2018 19:55:12 +0200 Subject: DeleteAll for KV (#9431) Expire K/V Values Regenerate Code pathfix Update Expiry on Update Check for Exit Signal gofmt Rewrote Go Routine Remove tempoarily cleanup loop fix expiretime TEST: Expired Watchdog as GoRoutine Check if Srv is nil Use Scheduler/Worker for Expired Key CleanUp add license fix scheduler job type; DoJob Restructuring Remove unused imports and constants move db migration from 5.4 to 5.5 --- plugin/scheduler/plugin.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugin/scheduler/plugin.go (limited to 'plugin/scheduler/plugin.go') diff --git a/plugin/scheduler/plugin.go b/plugin/scheduler/plugin.go new file mode 100644 index 000000000..3133cb4b1 --- /dev/null +++ b/plugin/scheduler/plugin.go @@ -0,0 +1,19 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +package scheduler + +import ( + "github.com/mattermost/mattermost-server/app" + tjobs "github.com/mattermost/mattermost-server/jobs/interfaces" +) + +type PluginsJobInterfaceImpl struct { + App *app.App +} + +func init() { + app.RegisterJobsMigrationsJobInterface(func(a *app.App) tjobs.MigrationsJobInterface { + return &PluginsJobInterfaceImpl{a} + }) +} -- cgit v1.2.3-1-g7c22