Closed bakura10 closed 8 years ago
Mmhh this is strange, tests time out (the same happens locally). If i revert the thing at the top of the method, tests work again...
Don't know what's going on here, but $this->runCount++; should be the first thing run after a job is processed. More likely the >= comparison and/or state setting is incorrect (not verified)
when i var_dump some stuff within the strategy things seems to operating correctly. Are you sure you don't have an issue in a custom ProcessQueueStrategy?
In SlmQueueDoctrine the count is reported correctly?
yes
I've not been able to experience that every time. Actuallly, it seems there are some problems when the job triggers an exception, it's actually not executed but the counter increments. Anyway, it's not a big issue (only cosmetic) so we can fix that later.
Yes, seems you are correct, event flow is incomplete when Exceptions occure. I think a solution would be to add an event to be broadcasted when exceptions occur.
ping @juriansluiman @basz
I don't know why but SlmQueueSqs always reported one more job that how much was really executed. If set at the end, it works correctly.
Can you please try in your app with Doctirne if you have the same issue?