RomainLanz / adonis-bull-queue

Queue system based on BullMQ for AdonisJS
MIT License
147 stars 26 forks source link

Run node ace queue:listen in production #33

Closed maukoese closed 8 months ago

maukoese commented 8 months ago

I have an API built with Adonis v5 that has jobs for sending messages, etc after an order has been placed. How would I go about runing the queue listener on render.com where the API is deployed?

Any assistance would be highly appreciated.

RomainLanz commented 8 months ago

Hey @maukoese! 👋🏻

I have never used render.com, you should search on their website how to run custom commands.

You may have no other choice than running a second application with node ace queue:listen as the starting point (instead of node bin/server.js.

maukoese commented 8 months ago

I ended up installing and starting pm2 durjng deployment and adding a script in the ecosystem config file to run node ace queue:listen. It works. Thank you.