brandonhilkert / sucker_punch

Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.
MIT License
2.65k stars 114 forks source link

Using SuckerPunch with Bunny #207

Closed blanchma closed 6 years ago

blanchma commented 6 years ago

Whenever I try to open a channel using Bunny in SuckerPunch I get a Timeout::Error. I know this is a question for Bunny library but I want to ask if in your experience the library with Ruby 2.3.1 could be having a concurrency issue?

brandonhilkert commented 6 years ago

I haven't used Bunny before, but Sucker Punch uses https://github.com/ruby-concurrency/concurrent-ruby under the covers. So if there was any issue, it'd be related to it.

A quick search didn't yield any results for "Bunny" in their issues list. Might be worth asking over there though, in case there's something obvious we're missing.

blanchma commented 6 years ago

Thanks for your quick answer. I'm using an async job to run async methods of classes. Can a crash in one worker of a job affect others workers?

brandonhilkert commented 6 years ago

It shouldn't, no. It's using a poll, which will spawn new ones to satisfy the number of workers.