3scale / apisonator

Red Hat 3scale API Management Apisonator backend
https://3scale.net
Apache License 2.0
35 stars 27 forks source link

Monkey-patch Resque.enqueue when using async #145

Closed davidor closed 4 years ago

davidor commented 4 years ago

The async lib does not work well with the Resque gem. It crashes when running a pipeline in the enqueue method. This PR mokey-patches that method when using async.

I tried running the listeners with Falcon and the change introduced in this PR is the only one needed to make it work. After applying this change, the listeners can be executed with Falcon and the async redis lib with: CONFIG_REDIS_ASYNC=true bundle exec falcon serve -b http://0.0.0.0:3000 -c config.ru -n 4

davidor commented 4 years ago

@unleashed added :+1:

unleashed commented 4 years ago

bors r+

davidor commented 4 years ago

Looks like bors is going to time-out again. As this is based on top of master, it can be safely merged.

bors[bot] commented 4 years ago

Timed out