jondot / sneakers

A fast background processing framework for Ruby and RabbitMQ
https://github.com/jondot/sneakers
MIT License
2.24k stars 333 forks source link

Fix Runner#stop #409

Closed kleinron closed 4 years ago

kleinron commented 4 years ago

Before the fix

Any call to Runner#stop would raise an exception. As a workaround, one could redefine Runner#stop, as described in issue #407 .

Reason

The encapsulated ServiceEngine instance expects an argument (stop_graceful), which was not provided.

The fix

Add an argument to Runner's stop method, with the same name stop_graceful and use it for the delegation.