Hangfire: IBackgroundProcess defined on StartUp not shown in the Dashboard

Created on 14 Sep 2015  路  4Comments  路  Source: HangfireIO/Hangfire

I define a process-class implementing the IBackgroundProcess-interface like following

``` c#
using Hangfire.Server;

namespace Some.Namespace {
public class MyBackgroundProcess : IBackgroundProcess {
public void Execute(BackgroundProcessContext context) {
DoSomeWork();
context.CancellationToken.WaitHandle.WaitOne(TimeSpan.FromMinutes(5));
}
}
}

and add the process on startup

``` c#
using Microsoft.Owin;
using Owin;
using Hangfire;
using Hangfire.SqlServer;
using Hangfire.Dashboard;

[assembly: OwinStartup(typeof(Eicin.Erp.Ui.Web.Startup))]
namespace Eicin.Erp.Ui.Web
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
             // ...
             // Do the other init

             app.UseHangfireServer(new MyProcess());

             // Do additional stuff
        }
    }
}

the process is not visibile on the dashboard. Is there a possibilty to make it visible?

dashboard feature-request

Most helpful comment

Curious to know an answer for this as well. It would be nice to have a visual confirmation background processes are running.

All 4 comments

Curious to know an answer for this as well. It would be nice to have a visual confirmation background processes are running.

Hi, I would also really like to see the BackgroundProcess on the dashboard. Is this possible?

I have a few processes like this my self so i would also love to get a visual overview of the running background processes.

This could be a nice feature.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thurfir picture thurfir  路  4Comments

cottsak picture cottsak  路  3Comments

tompazourek picture tompazourek  路  3Comments

nathvi picture nathvi  路  4Comments

dealproc picture dealproc  路  3Comments