Questions tagged [hangfire-autofac]

Hangfire.Autofac is a Hangfire job activator based on the Autofac Inversion of Control container for Windows/.NET applications.

Hangfire.Autofac is a Hangfire job activator based on the Autofac Inversion of Control container for Windows/.NET applications.

26 questions
1
vote
2 answers

Hangfire is running jobs sequentially

I am using HangFire hosted by IIS with an app pool set to "AlwaysRunning". I am using the Autofac extension for DI. Currently, when running background jobs with HangFire they are executing sequentially. Both jobs are similar in nature and involve…
William
  • 317
  • 2
  • 12
0
votes
0 answers

Hangfire Recurring job can't be scheduled

Hi I am getting below issue in my Hangfire recurring job after each 10 or 15 mins and every time I have to trigger my job manually and again it starts working for some time and then again getting the same issue. What could be the cause of this…
0
votes
0 answers

Why HangFire throws exception on Recurring job after executing several scheduled recurrences of the same job?

I am facing strange issue of having the failure of occurrences of scheduled job which I scheduled on specific time. I rescheduled it with-in the succession of very short duration (e.g. 2 minutes ) to watch it closely. Even removed all failed jobs…
Usman
  • 2,742
  • 4
  • 44
  • 82
0
votes
1 answer

How to configure Hangfire with Autofac in a dotnet core console app

I'm trying to port a working Hangfire setup embedded in a Kestrel webserver to a console app. I've modified the web app so it still provides the Hangfire dashboard but doesn't start its own Hangfire server. The code I must port uses Autofac. I've…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
0
votes
1 answer

abp.io + hangfire issue A suitable constructor for type XXXX could not be located

I'm just trying to run a background job with ABP.IO project and Hangfire (I have already made it with aspnetboilerplate without any issue) Each time my recurringjob start it throw this error : A suitable constructor for type…
seb49
  • 107
  • 7
0
votes
1 answer

Autofac configuration for hangfire

I want to use hangfire in my Asp.Net MVC App and I'm using Autofac as DI. I've installed Hangfire.Autofac nuget I want to add a recurring job like this: UserService.cs public class UserService : IUserService { public void MyRecurringJob() { //…
mhesabi
  • 1,140
  • 3
  • 22
  • 48
0
votes
0 answers

Cant use properties of instance while running job on Hangfire

I'm trying to use Hangfire as job scheduler. I created class called Check that has some properties (non-static variables) and Run method. when I trigger the Run method (using Hangfire framework) for specific instance of the class, the properties in…
0
votes
0 answers

Autofac Register Concrete Class

I am getting the below error on registering a concrete class using Autofac This is the class [AutomaticRetry(Attempts = 0)] public class NoRetryJob where T : IRecurringJob { private T Job { get; set; } private static readonly Logger…
0
votes
2 answers

Call Hangfire Job (Recurring Job) from external API

I have been using Hang-fire in our project but had a question, Can i call a hangfire Recurring Job from an API? For Example: http://devmyproject.com/projectname/recurring is the url for Hangfire web application to get recurring job. Now from my…
Arjun A
  • 131
  • 2
  • 3
  • 10
0
votes
1 answer

Hangfire Autofac integration is not able to resolve service with registred dependency

I'm using hangfire to lauch background job but I have a problem when I try to use the hangfire autofac integration with generic to resolve automaticly the task service it's not working because it's is not able to be resolve one of the dependency. I…
jboo
  • 364
  • 6
  • 14
0
votes
0 answers

Sending recurring mail in background in every ten minutes

I want to send mail to admin in every ten minutes after the application has started. Simple recurring tasks has been running. But when I try to send mail, I get "Autofac.Core.Registration.ComponentNotRegisteredException". Here is what I have done. I…
user3127109
  • 3,421
  • 8
  • 24
  • 33
1
2