Background jobs in ASP.NET Core: BackgroundService, Hangfire or Quartz, and the IIS trap
Your nightly job ran perfectly in development and never ran in production. On IIS that is usually not a bug in the job, it is the app pool going to sleep. How to choose a job runner and keep it awake.