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

Tracking threads #56

Closed aaani closed 10 years ago

aaani commented 10 years ago

I am looking for a way to kill jobs just in case they are hung or taking forever. Is there any way to track/list existing jobs?

brandonhilkert commented 10 years ago

Sorry i missed this. Sucker Punch provides no ways to keep track of threads.

JoeZ99 commented 8 years ago

that's too bad!! The library is great otherwise.

Does this means that the only way of getting rid of stalled processes is by restarting the rails server? Is there any sort of "panic button" somewhere in the code?

brandonhilkert commented 8 years ago

@JoeZ99 Not sure what you mean by "stalled processes". The threads are running in the web process. There is currently no manual way to manipulate the queue unless you dig in the internals of Celluloid.

JoeZ99 commented 8 years ago

@brandonhilkert , I mean processes that, for some kind of bad programming (which I'm very prone to do, btw ;-) ), enters into and endless loop of the sort,

anyway, txs for the code, it's incredibly convenient.