Skip to content

Resolve "Don't raise an exception when the batch_size is 1"

What does this MR do and why?

When we retry a batched background migration via the admin panel, the system will split and retry all jobs. If one of these jobs has the batch_size the system will raise an exception and the customer will see the 500 Error screen.

To mitigate this, we reset the job attempts when the batch_size is one.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #367334 (closed)

Edited by Diogo Frazão

Merge request reports

Loading