#Bullmq and remix dev integration issues

1 messages · Page 1 of 1 (latest)

blazing field
#

I love using bullmq with remix, but I am running into issues regarding zombie workers with outdated code running. If i update the code for a worker, then I have to restart the remix server. And even that fails to get rid of the workers sometimes. How can I force a close of all workers at the time of a rebuild and/or shutdown? Are there signals generated during the HMR process? If so, where is the best place to define signal handlers in remix?

gusty maple
#

are you talking dev? prod?
How do you instantiate the workers?

blazing field
#

This is only for dev. I start a worker for each queue at the time the queue is created.