title: How to handle exceptions from nested jobs?
body: <p>I have a Sidekiq / ActiveJob class that looks like:</p>
  
  <pre><code>class ParentJob &lt; ApplicationJob
    queue_as :default
  
    def perform(user)
      ChildJobA.perform_now(user)
      ChildJobB.perform_now(user)
      ChildJobC.perform_now(user)
      ...
    rescue CustomError =&gt; e
      handle_error(e)
    end
  end
  </code></pre>
  
  <p>The parent job is called via <code>ParentJob.perform_later(user)</code>.</p>
  
  <p>The child jobs can raise a <code>CustomError</code>.  I thought that I could rescue those in the parent job – but my <code>rescue</code> block is never called.  It seems that the child job simply exits and control does not pass back to the parent.</p>
  
  <p>Is there a way to rescue custom errors in the parent job or do I have to repeat the same error handler in every child job?</p>