From 2425ebda7182212af0cf17060c8c3b09b582b478 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 21 Jan 2026 12:28:19 +0100 Subject: [PATCH] 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. --- crates/tasks/src/lib.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/crates/tasks/src/lib.rs b/crates/tasks/src/lib.rs index 54dc8d713..f238773c8 100644 --- a/crates/tasks/src/lib.rs +++ b/crates/tasks/src/lib.rs @@ -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