hangfire Questions
2
Background: I am using Hangfire with .net web application to run recurring job, which is scheduled for 3rd Saturday of every month.
But as per the need client can trigger that job manually from han...
3
Solved
I'm not sure what's going on with Hangfire but calling BackgroundJob.Enqueue() adds a job to the database as "Scheduled" but nothing seems to happen. The method code does not seem to run. In the de...
3
Solved
I have been playing around with Hangfire in a Microsoft MVC application. I have gotten it to compile and schedule fire-and-forget tasks, but I am surprised that I cannot add/remove jobs while the p...
Absher asked 23/5, 2016 at 14:9
10
Scenario:
Job 1 is scheduled to run every 5 minutes, and takes ~1 minute to complete.
A lot of work piles up and Job 1 takes 15 minutes to run.
There are now three Job 1's being processed concur...
5
I am trying to create recurring job in hangfire that runs, once a month at the second Monday, something like this:
1. Monday, May 14, 2018 8:00 AM
2. Monday, June 11, 2018 8:0 AM
3. Monday, July 9...
3
Solved
I'm using Hangfire v1.7.9 and I'm trying to configure a series of recurring background jobs within my MVC 5 application to automate the retrieval of external reference data into the application. I'...
Shakitashako asked 13/3, 2020 at 11:2
4
Solved
I'm using HangFire to send emails to users in the background, regularly.
I'm obtaining email addresses from database, but I'm not sure whether I'm "injecting" database context to service that's re...
Krimmer asked 28/11, 2018 at 8:42
4
Solved
I have a MVC application and I am trying to send an email using Hangfire and Postal. The email must be sent after a registration.
The registration works properly, but the job I run remain enqueued...
Hennessy asked 16/9, 2016 at 12:4
2
Solved
I've just started using Hangfire, and I am loving it.
I understand that Hangfire maintains the history for succeeded jobs for 1 day, and clear it thereafter.
Is there is a way where I can customi...
Nigrescent asked 24/12, 2015 at 10:0
3
Solved
I want to deploy a simple shared-host ASP.NET MVC site to Azure (using the free site option) which uses Hangfire to run scheduled tasks.
Problem is the site only starts on the first request, and s...
2
Imagine in ASP.NET Core I register a dependency as Scoped like the following:
IServiceCollection services = ...
services.AddScoped<IEmailService, EmailService>();
Then I know that for each H...
Molotov asked 26/8, 2020 at 11:23
2
I have an app, with multi-tenancy. I want to create background job under user context, but I can't find good way to implement that.
I'll explain a bit my architecture. I'm using Interface ICurrent...
Wagonage asked 25/9, 2019 at 15:13
5
Solved
I have a console application to test HangFire. Here is the code:
using System;
using Hangfire;
namespace MyScheduler.ConsoleApp
{
internal static class Program
{
internal static void Main(str...
6
I am using hangfire in mvc application. I am sending reminder to user for his/her
appointment. I have installed hangfire in my app. I have configured hangfire in
startup.cs class. But when i run t...
Flytrap asked 31/8, 2018 at 10:20
4
Solved
I am trying to configure a recurring task in my MVC application starting at 00:00 every day. I know this can be achieved by RecurringJob.AddOrUpdate(() => Console.Write("Easy!"), Cron.Daily);.
N...
Mildred asked 9/7, 2016 at 14:20
3
I have a list of recurring jobs set up in Hangfire, all with an interval of 20 minutes.
They all call the same method, but with different parameters.
e.g.
Job ID test_1 => MyTestMethod(1)
Job ID...
Outwash asked 2/6, 2016 at 10:29
2
I'm using HangFire 1.6 in an asp.net WebApi2 solution with Owin.
The server is setup for one culture (da-DK) - I cannot change this. My application must use another culture (en-US) to correctly pa...
Pearle asked 20/11, 2017 at 16:22
5
I'm using hangfire 1.5.3. In my recurring job I want to call a service that uses the time since the last run. Unfortunately the LastExecution is set to the current time, because the job data was up...
1
I am trying to add the Hangfire JobId (and other properties) to all of my jobs without having to add it to each job method.
In Startup.cs I added a promising filter solution however I don't know ho...
4
I have an web app that is leveraging Hangfire for background tasks and jobs.
I have a recurring job where 2 instances of this job cannot be executing at any one time. Lets say the job takes longer...
Freshen asked 5/1, 2018 at 10:42
8
How can I use .NET Core's default dependency injection in Hangfire?
I am new to Hangfire and searching for an example which works with ASP.NET Core.
Pauperism asked 24/1, 2017 at 13:52
5
Solved
In Hangfire, I have successfully set recurring jobs and am able to trigger manually if I want to, thanks to the Web UI and its "trigger" button.
RecurringJob.AddOrUpdate(..);
But I'm willing t...
3
I have a .NET Core web application which is hosted on docker image. This application uses PostgreSQL which is hosted on cloud database service.
We added a Hangfire which will use the same cloud da...
Scriptorium asked 13/3, 2020 at 20:35
6
Solved
I have a server with Hangfire installed. I haven't checked it for a while and it seems one recurring job has gone rogue. It stopped working and then it has stacked up with retries resulting in a co...
Donatelli asked 11/10, 2016 at 8:41
2
I am currrently trying to secure the access to Hangfire Dashboard.
As I am using a .NET Core WebApi I do not really know how to secure the dashboard with Azure AD.
I tried to use a Policy, but with...
Officiary asked 29/1, 2021 at 5:42
1 Next >
© 2022 - 2024 — McMap. All rights reserved.