Closed Jay-Plumb closed 4 years ago
@Jay-Plumb could you check if the code from the branch https://github.com/breamware/sidekiq-batch/tree/jbrady42_pr_fixes is working fine? I'll try to fix failing specs and merge it to master hopefully sometime this weekend.
@managr I was on a work retreat last week so apologies for the late response. I will have a check on https://github.com/breamware/sidekiq-batch/tree/jbrady42_pr_fixes during my work day tomorrow :)
@managr Using the branch https://github.com/breamware/sidekiq-batch/tree/jbrady42_pr_fixes does not fix the issue. When CreateServerWorker
runs without a retry (by not raising StandardError
), the on_complete
callback fires but the on_success
does not.
For some reason, the on_success
callback is never fired...
The same is true when multiple jobs are queued e.g:
batch.jobs do
2.times { |i| CreateServerWorker.perform_async(i) }
end
Stale issue message
Hey everyone. There is an issue when I create a batch and supply a single job to it. Let me supply some code for anyone to replicate:
Executing
CreateClusterWorker.new.perform
from the rails console triggers theon_complete
callback (which correctly passesstatus.failures
to equal 1) but also triggers theon_success
callback (which incorrecly passesstatus.failures
to equal 0).Environment
Disclaimer
https://github.com/breamware/sidekiq-batch/pull/26 might fix the issue but given that the branch has merge conflicts I am unable to confirm. I wanted to create this issue just incase it is a slightly different edge case to the currently open issues.