Questions tagged [hangfire]

Hangfire is an open-source framework that helps you to create, process and manage your background jobs in .NET Framework and .NET Core.

Hangfire is an open-source framework that helps you to create, process and manage your background jobs in .NET Framework and .NET Core.:

  • mass notifications/newsletter
  • batch import from xml, csv, json
  • creation of archives
  • firing off web hooks
  • deleting users
  • building different graphs
  • image/video processing
  • purge temporary files
  • recurring automated reports
  • database maintenance

Background job type support:

  • Single use
  • Delayed
  • Recurring
  • Continuations

Persistent Storage via SQLServer, Redis, PostgreSQL, mongoDB or CompositeC1.

Hangfire is a .NET Framework alternative to Sidekiq, Resque, and delayed_job.

http://hangfire.io/

1297 questions
-1
votes
1 answer

Do hangfire recurring jobs need to be in program.cs?

I am using .Net 7 and Hangfire 1.8.5 Do all of hangfire's recurring jobs have to be listed directly in Program.cs ? Or can I abstract them out into a sub module? I'd rather have 20 recurring jobs in a seperate module than all in…
Scottish Smile
  • 455
  • 7
  • 22
-1
votes
0 answers

My Hangfire job some time works and some time getting this error message

System.InvalidOperationException: Recurring job can't be scheduled, see inner exception for details. ---> Hangfire.Common.JobLoadException: Could not load the job. See inner exception for the details. ---> System.TypeLoadException: Could not load…
-1
votes
1 answer

Is a C# WPF Hangfire Client possible?

I would like to enqueue Hangfire jobs from a WPF desktop application. Is this possible? I currently have an api that talks to our Hangfire server but would like to bypass it to enqueue background jobs directly. Has anyone set this up before? I'm…
foldinglettuce
  • 522
  • 10
  • 28
-1
votes
1 answer

.Net core when download file to wwwroot refreshs the page

Im using hangfire jobs to download files to project's wwwroot folder. When job starts, the project refreshing the page which i am in. I tried the downloading file to Project Content Path then i can't access the files. Any suggestions?
-1
votes
0 answers

Hangfire Job Exception as Failed in .NET 6

This is Image where i want to show exception I want to show my exception in Hangfire (Failed Section) in .NET 6.0. What should I need to do? I have tried many solution i have also attached my startup file. public void…
Daud Raza
  • 1
  • 5
-1
votes
1 answer

How can I schedule a recurring task to run at specific intervals in C#?

I need to schedule a task to run at a fixed interval of time. How can I do that for example every hour in C#? Update: Thanks for the help, after I have done some research I found out that I can do recurring jobs by using Hangfire. No Windows Service…
-1
votes
1 answer

How to perform postasync operation inside a loop in C#

I have a hangfire job build in C# .netcore. This job is making postasync call inside a forloop. After first call to api, it is throwing below error. This instance has already started one or more requests. Properties can only be modified before…
Anil
  • 1,669
  • 5
  • 19
  • 44
-1
votes
1 answer

Hangfire Job should run every hour between 12PM to 9PM

Need cron expression for Hangfire jobs runs at every 2 hour between 12pm to 9pm starting from 12.05,2.05,4.05PM
-1
votes
1 answer

Can Hangfire Job be exposed as Service?

Is there any way to expose Hangfire Job as Service? I wanted some of my hangfire jobs to be triggered from outside of hangfire project.
Vetrivel mp
  • 1,214
  • 1
  • 14
  • 29
-1
votes
1 answer

Cron expression not correct for Hangfire Recurring Jobs

I have a few jobs configured to be executed on an ASP.NET MVC Site through Hangfire. Hangfire uses a cron expression to trigger said jobs. I thought I had the expression correct, but the triggering is happening too often. As you can see, the top…
Peter Lange
  • 2,786
  • 2
  • 26
  • 40
-1
votes
1 answer

How to execute the code after submitting the task to Hangfire in .NET Console App

I have implemented Hangfire in .NET Console Application and It's working fine. After submitting Tasks(In my case downloading documents) to Hangfire I need to update the status of the Task(Document download status) in the Database, for this, I have…
Srinivas
  • 329
  • 3
  • 12
  • 32
-1
votes
1 answer

In Hangfire, how to call method using RecurringJob

I got simple method with defination defined in a interface. I am trying to call this method from Startup.cs using RecurringJob but getting exception. This is very simple test method. Interface public interface IEziDataLoader { Task…
K.Z
  • 5,201
  • 25
  • 104
  • 240
-1
votes
1 answer

Efficient way to run method by multiple thread(task)

I am looking for the best way to run a method with multiple threads. Here is a method I'd like to run public async Task GenerateById(int id) { //make a web request and save response to database using EF. return Json(new {…
dbenbyeon
  • 145
  • 2
  • 6
-1
votes
1 answer

How can I use async in void method

I'm developing Asp.Net Core MVC Web Application where I have to check if "EndOfSubscription" of any user is over daily. I have to set all users as "Expired" and then send an email to that user. The whole process should be implemented as background…
-1
votes
1 answer

Hangfire - .net core web api - IIS Implementation Error

I got an error hangfire implementation when I try to publish the web api on web server IIS. (WServer 2012) It was work on locally when I start on my computer host on IIS express. It was working well, I see my jobs on dashboard. I use the same…