title: Hangfire ContinueWithJob is stuck in awaiting state, though parent job has succeeded
body: <p>I have a few jobs executed one after the other via <code>ContinueJobWith&lt;MyHandler&gt;(parentJobId, x =&gt; x.DoWork())</code>.</p>
  <p>However, the second job is not getting processed and always sits in <code>Awaiting</code> state:
  <a href="https://i.stack.imgur.com/gRZEU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gRZEU.png" alt="Parent is Succeeded, but job is not procssesed" /></a></p>
  <p>The job itself is like this:
  <a href="https://i.stack.imgur.com/Gcoe6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Gcoe6.png" alt="Stuck in Enqueued" /></a></p>
  <p>Why this can happen and where to check for resultion?</p>
  <ul>
  <li>We are using Autofac as DI container, but we have our own <code>JobActivator</code> implementation because we have to deal with multitenancy.</li>
  <li>We are using SQL Server 2019 for storage.</li>
  <li>Hangfire version is 1.7.10</li>
  <li>This is MVC 5 application</li>
  <li>I've not seen any errors/exceptions in any logs or during debugging</li>
  <li>After going through <a href="https://github.com/HangfireIO/Hangfire/issues/1035" rel="noreferrer">this</a> I've added this to our Autofac registration</li>
  </ul>
  <pre><code>            builder.RegisterType&lt;BackgroundJobStateChanger&gt;()
                     .As&lt;IBackgroundJobStateChanger&gt;()
                     .InstancePerLifetimeScope();
  </code></pre>
  <p>This made no difference.</p>
  <p>This is how the jobs are executed:</p>
  <pre><code>var parentJobId = _backgroundJobClient.Schedule&lt;Handler&gt;(h =&gt; h.ConvertCertToTraining(certId, command.SetUpOneToOneRelationship), TimeSpan.FromSeconds(1));
  var filesCopyJObId = _backgroundJobClient.ContinueJobWith&lt;Handler&gt;(parentJobId, h =&gt; h.CopyAttachedFiles());
  _backgroundJobClient.ContinueJobWith&lt;Handler&gt;(filesCopyJObId, h =&gt; h.NotifyUser(command.CertificationToBeConvertedIds, _principal.GetEmail()));
  </code></pre>
  <p>All the parameters are either <code>int</code>, <code>bool</code> or <code>string</code>. If I enqueue the awaiting jobs by hand, they are executed without issues.</p>
  <p>I've added Hangfire logging, but could not see any issues there: server starts, stops, jobs change status, but could not see any obvious errors there.</p>
  <p>What other things I should consider or where/how should I debug this?</p>