You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this library for quite a while now.
I did an upgrade to hangfire an they are changing the signature of the method that I used to configure the ProcessMonitor.
Is it possible to provide a new configuration method using the IServiceCollection extension method to add the ProcessMonitor into additional processes?
Now the configuration must be on ConfigureServices method.
The JobStorage cannot be null anymore (starting on version 2).
The text was updated successfully, but these errors were encountered:
Hello @famda I've come to the same issue. If you're using a storage for your jobs you just need to provide it. For example I've this :
builder.Services.AddHangfireServer((_, options) =>
{
options.WorkerCount = 1;
},
new SQLiteStorage(ypurConnectionString),
new[] { new ProcessMonitor(checkInterval: TimeSpan.FromSeconds(5))
});
The type 'ProcessMonitor' exists in both 'Hangfire. Heartbeat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Hangfire. HttpJob, Version=3.8.2.0, Culture=neutral, PublicKeyToken=null'
Hi,
I'm using this library for quite a while now.
I did an upgrade to hangfire an they are changing the signature of the method that I used to configure the ProcessMonitor.
Is it possible to provide a new configuration method using the IServiceCollection extension method to add the ProcessMonitor into additional processes?
Now the configuration must be on ConfigureServices method.
The JobStorage cannot be null anymore (starting on version 2).
The text was updated successfully, but these errors were encountered: