|
You set the processed entries inside of the try block, what happens you have like 5 rows to process and for some unexpected reason the row 4 fail?
Will it in the next iteration just reprocess all lines and get into an infinite loop adding rewards for an user because one row is not properly set up?
Just a test case.
Use a transaction or update the rows right away.
|