Hangfire: Keep HangFire Server always running in IIS

Created on 29 Dec 2017  路  7Comments  路  Source: HangfireIO/Hangfire

Hi everyone,

I dont see many questions about this. How do we keep HangFire server always running in IIS?
I have tried many ways with IIS configuration but does not seem to work.
There is a documentation at
http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html

But How to setup these things on .Net Core version?

Thanks

Most helpful comment

So we use hangfire to avoid task scheduler and then use task scheduler to run hangfire? 馃槀

All 7 comments

YES THIS

On IIS;

  1. Your web site right click -> Manage Website -> Global Settting -> Advanced Settings
  • Set Preload Enabled = True
  1. Right click the application pool that your web site is using -> Advanced Settings
  • Set Start Mode = Always Running

This is for IIS 8.5 version. I didn't try but i guess it will also work on IIS 7.5 and above.

Hi @aligenc ,

I met the same problem, setting in this way did not take effect.

Windows Server 2016 & IIS 10

Duplicate of #1022.

Hi @thinkif ,

I have the same issue. I just want to ask if did you already resolved your problem? Thanks.

@cog0000d
Use task scheduler to trigger specific pages on a regular basis, with curl command.

This way is simpler than modifying system settings.

So we use hangfire to avoid task scheduler and then use task scheduler to run hangfire? 馃槀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nigel-dewar picture nigel-dewar  路  3Comments

osmanrahimi picture osmanrahimi  路  3Comments

abdelrady picture abdelrady  路  4Comments

cindro picture cindro  路  3Comments

dbones picture dbones  路  3Comments