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

How rails shutdown should be handled? #68

Closed ojab closed 10 years ago

ojab commented 10 years ago

I have some background jobs using sucker_punch (which is awesome, btw) and on rails shutdown sometimes there is a delay followed by Couldn't cleanly terminate all actors in 10 seconds! message.

How to handle this situation gracefully? I've tried to dig into celluloid source, but no luck so far.

brandonhilkert commented 10 years ago

Off hand, I'm not sure. I haven't experienced this. Have you posted to the Celluloid google group?

On Wednesday, July 16, 2014, ojab notifications@github.com wrote:

I have some background jobs using sucker_punch (which is awesome, btw) and on rails shutdown sometimes there is a delay followed by Couldn't cleanly terminate all actors in 10 seconds! message.

How to handle this situation gracefully? I've tried to dig into celluloid source, but no luck so far.

— Reply to this email directly or view it on GitHub https://github.com/brandonhilkert/sucker_punch/issues/68.


_The Build a Ruby Gem guide is available! http://brandonhilkert.com/books/build-a-ruby-gem/?utm_source=gmail-sig&utm_medium=email&utm_campaign=gem-config_

http://brandonhilkert.com

ojab commented 10 years ago

Thanks, so closing because there is nothing sucker_punch-specific. Will ask celluloid guys.

As a side note: celluloid-0.16.0 is coming, have you checked if sucker_punch working correctly with it? If so -- I'll try to reproduce the issue with celluloid master first.