Retries stuck MergeRequest::CleanupSchedule jobs
What does this MR do and why?
Given the fact that this issues do not frequently, I think this is a reasonable first iteration to retry stuck cleanup schedules based on updated_at
timestamp.
Database
New Query: .stuck
SELECT "merge_request_cleanup_schedules".* FROM "merge_request_cleanup_schedules" WHERE (updated_at <= NOW() - interval '6 hours' AND status = 1)
Time: 0.288 ms
Detail: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/10391/commands/36867
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #335957 (closed)
Edited by Sincheol (David) Kim