RomainLanz / adonis-bull-queue

Queue system based on BullMQ for AdonisJS
MIT License
143 stars 25 forks source link

Graceful Shutdown #53

Open joaosilva0345 opened 3 months ago

joaosilva0345 commented 3 months ago

Hi, When running an instance with the command node ace queue:listen, I noticed that upon sending a shutdown signal (SIGTERM), the instance continues to process new jobs that are added to the queue, even after receiving the signal.

Can someone explain to me how the shutdown process works with node ace queue:listen? Is there a graceful shutdown implemented to ensure that new jobs are not processed after the shutdown signal is received?

RomainLanz commented 3 months ago

Hey @joaosilva0345! 👋🏻

What version are you using?

joaosilva0345 commented 3 months ago

What version are you using?

I am using version "3.0.0". Even running the shutdown signal, it does not work.

@RomainLanz