vapor / queues

A queue system for Vapor.
MIT License
169 stars 41 forks source link

In process queues worker crash on Ctrl+c to exit server #72

Closed thuotdwz closed 4 years ago

thuotdwz commented 4 years ago

I have found a small issue when making use of startInProcessJobs function to run in process worker.

In configure we call:

app.queues.startInProcessJobs(on .default)

However when server is exited using ctrl+c, there will be an error printed from QueuesCommand deinit

JobsCommand did not shutdown before deinit

I think we need to QueuesCommand part of lifecycle so its shutdown function can be called properly?

THanks for your help!

jdmcd commented 4 years ago

Fixed by the latest release