Prevent laravel to insert (some) jobs into failed_job table #55021
Unanswered
foremtehan
asked this question in
Q&A
Replies: 1 comment
-
If the job fails because of connection to queue provider (ex SQS), you CAN't handle it with a try catch in your handle function, but for any other case you can. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it an efficient way to prevent Laravel from adding jobs to the failed_jobs table? For some jobs, I don't care if they fail, timeout, or encounter any errors.
The AI suggested using the following configuration:
However, this can be dangerous because the queue worker runs in the background and doesn't flush out frequently. This means the setting will apply to all workers, affecting all jobs globally.
Beta Was this translation helpful? Give feedback.
All reactions