Serg
Import Job does not stop after exception
Hi guys. I have a CSV importer script. And whenever there is some bug, let's say one column is missed, or maybe it's null, etc. the script throws Exception, which is fine, I have validations in place, but shit happens, it's a bit complicated import allowing different approaches.
Anyway, when some error happens, the job retries unlimited amount of time, like tens of thousands of times, throwing same error.
What I did:
I have tried to customize the job, limit the retries count, limit the retryUntil time, added maximum exceptions count, seems tried everything from Laravel docs about Jobs.
And when the error appears, job is not stopping until I fix the bug. I clear the queue, horizon, canceling the import batch, it still continues to retry to import.
And whenever there is a bug, but which does not interfere with creating record in db, it creates millions of records and stil retries.
Please help me solve this issue.
2 replies