A couple of queue questions
Hi everyone,
I've started to work with Queue's in Laravel and have a couple of questions i'd like to ask in regard to how they work.
The process i'm using is this: Step 1. Upload file Step 2. Process each row and add each row to a queue job. Step 3. Run queue job for that row after user confirmation. Step 4. Repeat steps 2 and 3 until done.
My first question is that 'm trying to manually fail the queue'd job so that i can work on errors, however i'm finding it an impossible task to do easily. Is there any easy way to do this other than having to specify a function which isn't defined.
The second question, on the failed function i'd like to pass the failed data through Pusher back to the UI so it gives the user a chance to retry running the failed job. However, in the failed function the Job ID no longer exists so i'm unable to specifically retry that job as i don't have the ID.
Am i missing something here? Documentation isn't that clear on the subject.
Please or to participate in this conversation.