Questions tagged [hangfire-sql]

63 questions
2
votes
1 answer

Does Hangfire Server have access to sensitive data within application?

I came across Hangfire in order to build background jobs using ASP.NET core MVC, and I have presented this idea to my manager and his concern was in terms of security, and some of the questions were as follow. Does Hangfire Server have access to…
aldo23
  • 39
  • 7
2
votes
1 answer

How can I clean Hangfire SQL database, keeping the actual jobs running

I use hangfire for more than a year now, with hangfire console, and some tables seem to have old information on it, from expired jobs I created some scripts to clean the Set table, but it doesn't seem right, I mean, there were millions of…
Luiz Bicalho
  • 813
  • 1
  • 12
  • 30
2
votes
0 answers

Is it possibe to use both storage (PostgreSQL and InMemory) in Hangfire?

I'm trying to solve the problem when I wanna run jobs in two different ways, only for one service instance and for multiple services instances. So I decided to create two different queues and just keep "local" jobs in "local" queue and in…
2
votes
1 answer

How to customize hangfire tables?

I need to add some additional columns in hangfire tables. I don't know how can I add additional columns to hangfire tables. Can anyone guide me on how can I add additional columns in hangfire tables and how hangfire will insert values for these…
Rafaqat Ali
  • 676
  • 7
  • 26
2
votes
0 answers

Hangfire works only when accessing the hangfire dashboard site, not working continue in backround

I have published my health API on the IIS server. I am worried as my jobs are not continue running on hangfire dashboard. When I check and access the site, it starts working and getting success and there are no jobs getting succeeded after closing…
Ankita_Shrivastava
  • 1,225
  • 11
  • 9
1
vote
0 answers

how to use Hangfire in separate write/read databases in CQRS pattern

As you know in cqrs pattern we may use separated databases for write data (command) and read data (query). I want to know in this case if I want to use Hangfire how should I specify that which database hangfire should connect to? Is it possible to…
1
vote
1 answer

Hangfire and main app in different applications

We have web application developed in .NET Core and is hosted on azure. We want to use HangFire for report scheduling. Our application is multitenant so it will have load of its own, So I want to run these background processes into different server.…
RashmiMs
  • 129
  • 14
1
vote
1 answer

How to run Hangfire as a separate process from the main web application?

I am experiencing a big performance hit with Hangfire running on the same app pool as my web application and our site has become terribly slow with CPU sitting at 96% constantly. I have looked at the Hangfire documentation and there is a way to run…
Donald N. Mafa
  • 5,131
  • 10
  • 39
  • 56
1
vote
0 answers

Hangfire Background Job not triggering

Hi i have a background job that i initialized in my HangfireController and i want this job to only be triggered once a button is clicked,the job does not fire at and hit my breakpoint inside the method i am callingall and no errors arise and my…
Tumo Maraisane
  • 105
  • 3
  • 11
1
vote
1 answer

Query Hangfire via internal API or Db Context?

I wonder if there is an internal API or EF Context that i can use within hangfire? I would like to obtain a list of all the jobs that have failed, check the method they are for and then requeue them if they are for the method i require. I would like…
Gillardo
  • 9,518
  • 18
  • 73
  • 141
1
vote
0 answers

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'nameOrConnectionString')

I am using hangfire in my ASP.net core application to run some background task. I am using IIS and i have configured Hangfire as follows: using Hangfire; namespace Whm.APIPortal { public class Startup { public Startup(IConfiguration…
1
vote
0 answers

Hangfire Dashboard "Unable to refresh the statistics: the server responded with 500 (Internal Server Error). Try reloading the page manually .."

I am getting this error on my hangfire dashboard on PPD server but working on my local and dev. Unable to refresh the statistics: the server responded with 500 (Internal Server Error). Try reloading the page manually, or wait for automatic reload…
1
vote
1 answer

Hangfire Server Sleeps when Inactive

I have set the application pool to: StartMode - Always Running | Idle-Timeout (minutes) 0 | Preload Enanbled = true I don't understand why my Hangfire Application still sleeps. Also the server was started a second ago after I open the hangfire…
1
vote
0 answers

Hangfire .NET Core ExpirationManager Error Bogging Down Application and Connection Pool

This began out of the blue about two days ago with no rhyme or reason and has been completely bogged down my PG instance. I have been getting a recurring constant Hangfire error message below that states it basically cannot connect to the PG…
Josh
  • 569
  • 1
  • 11
  • 35
1
vote
2 answers

How to increase hangfire job timeout

I have a .net core application which has hangfire 1.7.2 running. So I have this job, which executes SQL stored procedure and its a long running task, can be of 30 minutes. This gives me following error: Timeout expired. The timeout period elapsed…
Gaurav
  • 122
  • 1
  • 2
  • 11