brandonhilkert / sucker_punch

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

Setting priority #171

Closed brauliobo closed 8 years ago

brauliobo commented 8 years ago

I think that Sucker Punch jobs (and threads) should run in a lower priority so they don't slow down the app. Is it so? Is there an option to change it?

brandonhilkert commented 8 years ago

There's currently no option for that. Limiting the workers for an intense job might be one way around it. But due to the GIL, the effectiveness of this will still be mediocre at best. Happy to look at PRs if you're interested in putting something together.