Black Friday Sale!
Save up to 50% off any plans! Valid from 23 Nov to 30 Nov - Also valid for the existing customers
Open Closed

Recurring job does not run sometimes #8602


0
smartlayer created

Hi Team,

I have created the hangfire job in the ASPNET.ZERO application.Application does not require any user access and job needs to be execute every day at some specific time. When i deployed the application on IIS, hangfire jobs stopped working after some day. Since the job starts immediately when a user access the website, this makes me think that the application pool is suspended and it is “awaken” when the user access the website.

I also set the start mode to "Always running" in IIS.

Please help me.

Thanks in Advance.


5 Answer(s)
  • 0
    maliming created
    Support Team

    hi smartlayer

    • What is your product version?
    • What is your product type (Angular or MVC)?
    • What is product framework type (.net framework or .net core)?

    Can you check the logs of the application first?

  • 0
    smartlayer created

    Thanks for your kind reply.

    • What is your product version?
      • 6.9.0.0
    • What is your product type (Angular or MVC)?
      • MVC
    • What is product framework type (.net framework or .net core)?
      • .net framework

    Application logs as below

    Let me know for info.

  • 0
    maliming created
    Support Team

    Is the application also shutdown?

    Please share the full log. Thanks.

  • 0
    smartlayer created

    Is the application also shutdown? - our application is running on IIS, and also hosting server is working properly. How can we check that application is shut down or not.

    I am attaching the logs file as png as i didn't find attach file option. Please download and save as txt format.

    Thanks.

  • 0
    maliming created
    Support Team

    From the logs, Application_End is triggered. The problem should be that IIS recycled the application.

    Please check your IIS configuration again. http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html