mercredi 31 mai 2017

Laravel Dispatch Job - check if dispatched?

I am using Amazon SQS driver for Laravel Queue Job.

I want to inform the user that the job has been dispatched in the Queue. How do I check this before returning response to the user?

For example:

dispatch(new UploadJob($request->all()));

return $this->respond(['status' => 'In Queued']); // Is it really in queue?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2snTeH2
via IFTTT

Aucun commentaire:

Enregistrer un commentaire