HangFire long job stop and restart several time

I had the same problem. You are hitting hangfire’s invisibilityTimeout. You have two options.

  1. increase the timeout to more than the job will ever take to run
  2. have the job send a heartbeat to let hangfire’s know it’s still alive.