Don't raise an exception when the batch_size is 1
Context:
When we retry a batched background migration via the admin panel, the system will split and retry all jobs.
Problem:
The system will raise an exception if one of these jobs has the batch_size
equal to 1.
Solution:
We should reset the job attempts when the batch_size
is one and not raise an exception.
Edited by Diogo Frazão