feat: auto cleanup workflow history runs and expired certificates

This commit is contained in:
Fu Diwei
2025-03-19 17:12:24 +08:00
parent 914c5b4870
commit e27d4f11ee
19 changed files with 355 additions and 55 deletions

View File

@@ -3,6 +3,7 @@ export const SETTINGS_NAMES = Object.freeze({
NOTIFY_TEMPLATES: "notifyTemplates",
NOTIFY_CHANNELS: "notifyChannels",
SSL_PROVIDER: "sslProvider",
PERSISTENCE: "persistence",
} as const);
export type SettingsNames = (typeof SETTINGS_NAMES)[keyof typeof SETTINGS_NAMES];
@@ -165,3 +166,10 @@ export type SSLProviderGoogleTrustServicesConfig = {
eabHmacKey: string;
};
// #endregion
// #region Settings: Persistence
export type PersistenceSettingsContent = {
workflowRunsMaxDaysRetention?: number;
expiredCertificatesMaxDaysRetention?: number;
};
// #endregion