Search code examples
ajaxsignalrhangfire

Hangfire dashboard change refresh period


Hangfire dashboard send ajax requests to the server to refresh data: Hangfire dashbord requestes

It sends stats request as you can see on image. Every time it make request to database. It is possible to change number of requests in configuration or in other way? Because now is to often.


Solution

  • You can change polling interval in dashboard options, the setting is in milliseconds. Refer this

    app.UseHangfireDashboard("/hangfire", new DashboardOptions
     {
     StatsPollingInterval = 60000
     });