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?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire