laravel-queue-rabbitmq icon indicating copy to clipboard operation
laravel-queue-rabbitmq copied to clipboard

Rpc listen after job queued

Open amiranbarigreenweb opened this issue 3 years ago • 1 comments

Hi, we need to listen the reply queue in rpc after dispatching a job like this: dispatch(New ExampleJob()); we want listen to reply in dispatch but i have no idea about this. Do you have any idea? Thanks

amiranbarigreenweb avatar Feb 05 '22 09:02 amiranbarigreenweb

I'm really waiting for the answer to this question

wahidfathul33 avatar May 24 '22 15:05 wahidfathul33

When you wait for a job to complete it is easier to execute it direct. Or let the ExampleJob send a ExampleFinishedJob when something needs to happen when the first job is finished.

https://www.rabbitmq.com/tutorials/tutorial-six-python.html see "a note on RPC" why RPC is not a really good idea.

leonrenkema avatar Oct 20 '22 06:10 leonrenkema

RPC is not a planned part of this library. You can setup laravel events to listen to changes or add triggers to your own Jobs to make RPC requests.

M-Porter avatar Jan 31 '23 19:01 M-Porter