So currently I have some REST-API based on laravel, and I'm using queue laravel jobs with redis, to send a CURL when the request is done and I get the response, I want to retry this queue if the response doesn't same as I expected, like
if($response->status != true){
//retry this JOBS
}
I try to throw an exception but it's wrong because I have handler if I got an exception, then I force to send response json which means force stop the process.
So, how can I retry the jobs?