Re-enable upstream OAuth session cleanup job

It should be safe to run now
This commit is contained in:
Quentin Gliech
2026-01-21 14:50:03 +01:00
parent f8e87ec2c4
commit 49802c7812

View File

@@ -211,16 +211,12 @@ pub async fn init(
"0 57 * * * *".parse()?,
mas_storage::queue::CleanupUserEmailAuthenticationsJob,
)
// 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-sessions",
// Run this job every hour
"0 58 * * * *".parse()?,
mas_storage::queue::CleanupUpstreamOAuthSessionsJob,
)
.add_schedule(
"cleanup-upstream-oauth-links",
// Run this job every hour