Skip to content

Add method to split batched migration jobs

Heinrich Lee Yu requested to merge 332613-split-migration-job into master

What does this MR do?

In #332613 (closed), we saw that some batched migration jobs were failing even though we were not running into statement timeouts. This suggests that the sub-batch size is fine but the batch size may be too large causing the Sidekiq job to run too long. (We currently have an issue with long-running Sidekiq jobs: https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/13582)

This MR adds a method to split jobs and set them to pending so that they will be retried by the cron worker.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Nikola Milojevic

Merge request reports