• Kamil Trzciński's avatar
    Allow to interrupt running jobs · 75e2302d
    Kamil Trzciński authored
    This adds a middleware to track all threads
    for running jobs.
    
    This makes sidekiq to watch for redis-delivered notifications.
    
    This makes be able to send notification to interrupt
    running sidekiq jobs.
    
    This does not take into account any native code,
    as `Thread.raise` generates exception once the control gets
    back to Ruby.
    
    The separate measure should be taken to interrupt gRPC, shellouts,
    or anything else that escapes Ruby.
    75e2302d
monitor.rb 1.25 KB