Questions tagged [hangfire-console]
17 questions
18
votes
2 answers
How to force hangfire server to remove old server data for that particular server on restart?
I am showing list of hangfire servers currently running on my page.
I am running hangfire server in console application but the problem is when I don't have my console application running still hangfire api returns hangfire servers.
Moreover when I…

I Love Stackoverflow
- 6,738
- 20
- 97
- 216
4
votes
1 answer
Trigger recurring Hangfire job from database script
I have a pretty complicated sql script which cleans up my database and will be run manually from time to time. Immediatelly after the script has run I have to start a recurring hangfire job which is usually executed only once per day.
In order not…

marco birchler
- 1,566
- 2
- 21
- 45
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
3 answers
How to get the PerformContext from hangfire API
In our project we are using aspnetzero template. This template allows a simple but abstracted usage of hangfire. Now we would like to add Hangfire.Console to our project which would allow us to write logs to hangfires dashboard.
In order to write a…

marco birchler
- 1,566
- 2
- 21
- 45
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
Unable to run Hangfire job in background continuously
We are trying to run a .Net Core Hangfire Job application in Docker container. We are able to run this application in console(foreground) but if we hit Enter button it is automatically stopped.
When we are trying to run same application in…

Onblick Inc
- 11
- 1
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…

Divy Prakash
- 19
- 1
0
votes
0 answers
Hangfire - prevent logging unnecessary "Succeeded" jobs (without tags)
Now that 2yrs has gone by since this related SO question was asked, is there a way to prevent Hangfire from logging "spammy" Succeeded jobs in the Dashboard - aside from using the HF Tags extension noted in the related SO?
Reason - if you have a job…

Ted Krapf
- 403
- 3
- 11
0
votes
1 answer
Hangfire (v1.8.4) favicon not being displayed
I'm using Hangfire version 1.8.4 to schedule some background processes, but when I fire the application it doesn't displays a default favicon.
This is how it's displayed right now:
Does someone know how to properly insert an icon onto Hangfire?
I'm…

cpimentel
- 1
- 2
0
votes
0 answers
.Net 6 Hangfire with dynamically loaded plugins via custom Type Resolver problem
This issue is related to Job execution not working in dynamically loaded assemblies. My jobs are dlls that gets copied to plugin\Myplugin1 , plugin\MyPlugin2 and so on. Each plugin has an initialize method that adds it's types to DI so all plugins…

user2058413
- 691
- 3
- 10
- 28
0
votes
0 answers
HangFire takes different class than the one the method present in for Recurring Jobs
We are using HangFire for one of our applications to schedule Reports.
CreateJobsOpenBidListReportHandler is class which is being inherited from AbstractCreateReportHandler class.
public class CreateJobsOpenBidListReportHandler :…

RashmiMs
- 129
- 14
0
votes
1 answer
Hangfire.Console Error with .NET Framework
I use hangfire in a webforms project. Hangfire itself was working. Then I installed Hangfire.Console extension to add log messages, but now I get an error
Error CS0234
The type or namespace name 'Console' does not exist in the namespace 'Hangfire'…

Maher Khalil
- 529
- 1
- 15
- 28
0
votes
0 answers
Hangfire.Console logging not displayed in Dashboard
I've been using Hangfire for ages, but only recently discovered you can use Hangfire.Console to output logging, which can be seen in the Hangfire Dashboard.
I've seen it work on someone else's project, but when adding logging to my own project, I…

jvtroyen
- 11
- 5
0
votes
1 answer
Why is hangfire not printing out the message in my method
I have written a simple console app that should print a message every minute. I do get the first print message saying "starting" however i do not get the message in the PrintTest()
method in my console. What is the reason for this ? By the way, this…

floormind
- 1,868
- 5
- 31
- 85