MM-16796: reduce plugin job interval to once per day (#11521)
* MM-16796: reduce plugin job interval to once per day The Jobs infrastructure isn't currently setup for running frequent jobs, as it spams the Jobs table with useless records. Update the plugin job interval to run less frequently -- since the cleanup doesn't affect semantics anyway -- and clean up the previously created entries in the Jobs table.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8d100af052
Коммит
0d05fe32af
@@ -699,6 +699,9 @@ func UpgradeDatabaseToVersion512(sqlStore SqlStore) {
|
||||
|
||||
func UpgradeDatabaseToVersion513(sqlStore SqlStore) {
|
||||
if shouldPerformUpgrade(sqlStore, VERSION_5_12_0, VERSION_5_13_0) {
|
||||
// The previous jobs ran once per minute, cluttering the Jobs table with somewhat useless entries. Clean that up.
|
||||
sqlStore.GetMaster().Exec("DELETE FROM Jobs WHERE Type = 'plugins'")
|
||||
|
||||
saveSchemaVersion(sqlStore, VERSION_5_13_0)
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user