You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can rescue interrupts in Ruby. Here's a blogpost (not mine) talking a bit about it. So you'd have to wrap the code in a begin block and then rescue the interrupt.
If instead of what you have there, you were to do:
I'm using this in a sidekiq job (not the best place for it I realize, in the name of time I'm not daemonizing)
The only thing is, is there a way I can check something inside the local loop in the gem?
This obviously only works when there's a message, but otherwise it will get SIGKILL
The text was updated successfully, but these errors were encountered: