chilts / mongodb-queue

Message queues which uses MongoDB.
209 stars 91 forks source link

Add kill command #26

Open abbottcr opened 6 years ago

abbottcr commented 6 years ago

This adds a kill() function to remove a message from the active queue immediately and add it to the dead queue.

This is useful for messages that you know cannot be completed regardless of retries.