edgurgel / verk

A job processing system that just verks! 🧛‍
https://hex.pm/packages/verk
MIT License
721 stars 65 forks source link

Gracefully pause queues before shutting down #161

Closed edgurgel closed 6 years ago

edgurgel commented 6 years ago

This PR changes the way Verk will shutdown. It uses a GenStage consumer to watch for all the queues that should be paused. Waiting a max of shutdown_timeout

It fixes https://github.com/edgurgel/verk/issues/96

cc/ @krasio

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.2%) to 87.738% when pulling e506851d5e72e712568b3b37e4738c5fb583eff8 on graceful-shutdown into 4dbc7290ad11ce046f345a6f9e1ef57f92988d9e on master.

edgurgel commented 6 years ago

Cool we now have integration tests and unit tests. We should be able to merge and release soon 🎉