bschmitt / laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages
MIT License
268 stars 86 forks source link

Howto restart after fresh deployed code ? #52

Closed Cyrille37 closed 5 years ago

Cyrille37 commented 5 years ago

Hi, Thanks for Ur nice work :-)

Laravel Queues have a queue:restart command, to use after deployed fresh code (usually in composer 'post-install-cmd' event). How to do with laravel-amqp when listening forever ? Is there a way to create command like laravel-amqp:restart ?

Thanks & cheers

Cyrille37 commented 5 years ago

As:

Perhaps one on this recipe could be used ... I continue to search ...

stevenklar commented 5 years ago

As far as i'am concerned you need to handle this yourself. The package itself has no "helper commands" yet and is more like a library you can build on top of.

I would suggest a daemon like supervisord to observe the instance and restart your consumer on deployment.

EDIT: If you have further suggestion how your idea could fit into laravel-amqp, please don't hesitate to present them here. Also if anyone is interested please join the conversation.