Disable cleanup of upstream OAuth sessions

This job is temporarily disabled due to pending database backfill work.
It will be re-enabled in a future release.
This commit is contained in:
Quentin Gliech
2026-01-21 12:28:19 +01:00
parent 39e417b461
commit 2425ebda71

View File

@@ -211,12 +211,16 @@ pub async fn init(
"0 57 * * * *".parse()?,
mas_storage::queue::CleanupUserEmailAuthenticationsJob,
)
.add_schedule(
"cleanup-upstream-oauth-sessions",
// Run this job every hour
"0 58 * * * *".parse()?,
mas_storage::queue::CleanupUpstreamOAuthSessionsJob,
)
// This job is currently disabled, as it needs a database backfill to
// happen, which will happen in the next release. Some context in
// https://github.com/element-hq/matrix-authentication-service/issues/5435
//
//.add_schedule(
// "cleanup-upstream-oauth-sessions",
// // Run this job every hour
// "0 58 * * * *".parse()?,
// mas_storage::queue::CleanupUpstreamOAuthSessionsJob,
//)
.add_schedule(
"cleanup-upstream-oauth-links",
// Run this job every hour