NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #541 most downloaded on NuGet
.NET Core's Worker Service host support for Hangfire, a background job framework for .NET applications.
Latest stable
1.8.25
Last release 2 months ago
28 Aug 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
10 versions withdrawn
withdrawn after publishing
127 years old
71 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Added – Display recurring job exceptions directly in the Dashboard UI.
Hangfire.Core
RecurringJobScheduler to stall the pipeline when extension filters throw an exception.DelayedJobScheduler to stall the pipeline when state filters throw an exception.JobLoadException when new methods deployed, caused by overlapped recycles in ASP.NET applications.Error field of a recurring job.NullReferenceException instead of InvalidOperationException when deserializing a job.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added – Farsi translation for Dashboard UI (#1611 by @sepehr1101).
Hangfire.Core
PrefixPath in DashboardOptions (#1630 by @shenjielx).PageUrl to be overridden by subclass (#1613 by @brendonparker).Hangfire.SqlServer
XACT_ABORT option for ExpirationManager queries.NullReferenceException in logs thrown from SqlInternalTransaction.Rollback method (#1494).Fixed – Additional Chinese translation for Dashboard UI (by @brookqin).
Hangfire.Core
null checks for expired failed jobs in Dashboard UI (by @ppkale1995-cimpress).Hangfire.SqlServer
sp_getapplock.DbConnection instance when an exception occurs during its opening.Documentation
Deprecated – Deprecate the JobActivatorScope.InnerScope property as it wasn't implemented.
Hangfire.Core
IGlobalConfiguration.UseResultsInContinuations method to globally enable results for continuations.ContinuationsSupport.JobParameterInjectionFilter server filter to inject job parameters as arguments.UseBackgroundPool methods.CultureInfo.InvariantCulture is now restored properly in background jobs.null value is skipped when displaying job arguments in Dashboard UI.System.Diagnostics.Debug type in .NET Core 3.0.JobActivatorScope.InnerScope property as it wasn't implemented.Hangfire.SqlServer
System.Data.SqlClient dependency from SqlCommandBatch and ExpirationManager.Hangfire.AspNetCore
IAppBuilder.MapHangfireDashboard method for ASP.NET Core 3.0 endpoint routing (by @kendaleiv).netcoreapp3.0 target with "Microsoft.AspNetCore.App" framework reference (by @stebueh).Hangfire.NetCore
netcoreapp3.0 target with reference to "3.0.0" packages.Documentation
Changed – Produce a trace log message with details when updating a recurring job.
Hangfire.Core
CoreBackgroundJobFactory.Create when storage returns null.Readme.md file (PR #1526 by @231293).netcoreapp3.0 target framework for Hangfire.Core.Tests.*.cshtml files.Dashboard UI
RazorPage.Context property as a public member.Hangfire.SqlServer
UseFineGrainedLocks option to avoid deadlocks in some theoretical cases.UseSqlServerStorage with connection factory parameter only.-) in schema names (PR #1531 by @kendaleiv).netcoreapp3.0 target in Hangfire.SqlServer.Tests.Hangfire.AspNetCore
AddHangfireServer method for .NET Framework 4.6.1 and higher (PR #1488 by @danstur).Changed – Add support for dash characters (-) in queue names (PR #1469 by @augustoproiete).
Hangfire.Core
-) in queue names (PR #1469 by @augustoproiete).TaskScheduler is set to null.WaitOneAsync method.Fixed – Show error message when there's an error loading the statistics in Dashboard UI (PR #1242 by @prochnowc).
Hangfire.Core
LazyThreadSafetyMode.PublicationOnly to avoid caching "JobStorage.Current is null" exceptions.Hangfire.AspNetCore & Hangfire.NetCore
AddHangfireServer method with "options" action.Added – BackgroundJobClient.RetryAttempts property to make job creation resilient to transient exceptions.
Hangfire.Core
BackgroundJobClient.RetryAttempts property to make job creation resilient to transient exceptions.pt-BR (by @candidodmv).WaitOne and WaitOneAsync methods with timeout and cancellation token for WaitHandle class.Hangfire.SqlServer
SlidingInvisibilityTimeout fetching.Score column in the AddToSet method.This version contains security fixes to prevent possible XSS attacks as described in #1441. They don't relate to user data submitted to Hangfire direc…
This version contains security fixes to prevent possible XSS attacks as described in #1441. They don't relate to user data submitted to Hangfire directly via method arguments, but it's recommended to upgrade anyway. If you are using Hangfire 1.6, please upgrade to version 1.6.26 instead.
<dl> <dt>Affected Packages</dt><dd>Hangfire.Core ≤ 1.6.25, 1.7.0, 1.7.1, 1.7.2</dd> <dt>Affected Platforms</dt><dd>All, including .NET Core, .NET Framework, Mono of any version</dd> </dl>
Steps to reproduce
public static void Xss()
{
BackgroundJob.Enqueue(() => Xss2());
}
public static void Xss2()
{
throw new Exception("<script>alert(1);</script>");
}
Hangfire.Core
HtmlEncode in all remaining places in Dashboard UI to prevent XSS attacks.Cron.Never method for adding manual recurring jobs that never fire (by @michaltalaga).AddOrUpdate extension methods for the IRecurringJobManager interface.HtmlHelper.FormatProperties method is now obsolete.Hangfire.SqlServer
In order to give the community time to respond and upgrade we strongly urge you report all security issues privately. Please email us at support@hangfire.io with details and we will respond ASAP. Security issues always take precedence over bug fixes and feature work. We can and do mark releases as "urgent" if they contain serious security fixes.
> Please see https://docs.hangfire.io/en/latest/upgrade-guides/upgrading-to-hangfire-1.7.html to learn how to upgrade from 1.6.X.
Please see https://docs.hangfire.io/en/latest/upgrade-guides/upgrading-to-hangfire-1.7.html to learn how to upgrade from 1.6.X.
Hangfire.Core
DashboardOptions.TimeZoneResolver property to handle custom time zone resolvers in Dashboard UI.RecurringJob.AddOrUpdate method is now able to update a broken recurring job.Hangfire.AspNetCore & Hangfire.NetCore
ITimeZoneResolver service for the DashboardOptions.TimeZoneResolver property.IJobFilterProvider service from the AddHangfire method.Hangfire.SqlServer
> Please see https://docs.hangfire.io/en/latest/upgrade-guides/upgrading-to-hangfire-1.7.html to learn how to upgrade to 1.7.X.
Please see https://docs.hangfire.io/en/latest/upgrade-guides/upgrading-to-hangfire-1.7.html to learn how to upgrade to 1.7.X.
This is a patch release that adds some nice features for Dashboard UI, knows how to deal with recurring jobs with invalid Cron expressions, and contains some minor improvements for SQL Server storage. Also, Hangfire.NetCore package was added to support new .NET Core Worker Service applications without referencing any ASP.NET Core packages.
Hangfire.Core
DashboardOptions.IgnoreAntiforgeryToken property to disable token validation in Dashboard UI.InvalidOperationException when AllowSynchronousIO option isn't set in ASP.NET Core 3.0.NextExecution value to null when existing recurring job has an invalid Cron expression.UseSerializationSettings comment now contains correct method name (by @PaitoAnderson).resx files now re-generated automatically when building a project.Hangfire.NetCore
Hangfire.SqlServer
JobQueue table when using blocking query and don't have results.One column per quarter.