NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #421 most downloaded on NuGet
SQL Server 2008+ (including Express), SQL Server LocalDB and SQL Azure storage 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
44 versions withdrawn
withdrawn after publishing
127 years old
178 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
This is a correcting release that fixes a problem with recurring jobs. It is related to a possible misfire on the first run, if a background processin
This is a correcting release that fixes a problem with recurring jobs. It is related to a possible misfire on the first run, if a background processing server was inactive during the scheduled time.
Changed – C# 6.0 is now required to compile the solution (#531).
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed – "Cannot release the application lock" exception when using distributed locks (#471).
Hangfire.SqlServer
This is a hotfix for Hangfire 1.5.1 users. Previous releases are unaffected by this bug.
This is a hotfix for Hangfire 1.5.1 users. Previous releases are unaffected by this bug.
JobLoadException when using interface method as a background job, appeared in 1.5.1.Fixed – JobLoadException during deserialization when a method defined in an inherited interface (#455).
JobLoadException during deserialization when a method defined in an inherited interface (#455).Changed – ServerIds are now generated without ServerName, server names are deprecated.
Finally after 4 months of development and after 4 betas, Hangfire 1.5.0 released. Now you are able to customize your background processing pipeline even more, by using many types that were internal in previous versions. More responsive dashboard, IoC container scopes, support for remote MSMQ queues and other cool features are waiting for you!
Please see the Hangfire 1.5.0 post on the official blog for details.
Hangfire.Core
IBackgroundProcess interface that allows to implement custom background processes.BackgroundProcessingServer class for creating a server instance with completely custom background processes.BackgroundJobServer instances in the same AppDomain without explicit server names.JobActivatorScope class to support custom IoC scopes/lifetimes.BackgroundJobServer via options.Task with TaskCreationOptions.LongRunning.BackgroundJobClientException is thrown instead of CreateJobFailedException.TaskCanceledException thrown from a job method leads to failed job as expected.DelayedJobScheduler resilient to empty background job ids.OverflowException in Dashboard when job duration exceeds int.MaxValue (by @mavenius).Hangfire.SqlServer
TransactionTimeout option for configuring the TransactionScope timeout.DashboardJobListLimit option to prevent full table scans in Dashboard.SqlServerDistributedLock class is now public.rowlock table hint in job fetch query to prevent escalation.JobQueue.Queue and Server.Id column length increased to 50 and 100 respectively (by @maleet).Hangfire.SqlServer.Msmq
Added – Ability to specify the schema for SQL Server job storage (by @ryanmwright).
ServerHeartbeat and ServerWatchdog background processes are internal now.rowlock table hint in job fetch query to prevent escalation.BackgroundServer class renamed to BackgroundProcessingServer.SchedulePoller class renamed to DelayedJobScheduler.IJobCreationProcess interface renamed to IBackgroundJobFactory.IJobPerformanceProcess interface renamed to IBackgroundJobPerformer.IStateChangeProcess interface renamed to IBackgroundJobStateChanger.BackgroundJobClientException is thrown instead of CreateJobFailedException.Hangfire. namespace as expected.TaskCanceledException thrown from a job method leads to failed job as expected.DelayedJobScheduler resilient to empty background job ids.Added – Allow to use CancellationToken type as a job method parameter.
CancellationToken type as a job method parameter.WorkerContext.DefaultJobCreationProcess renamed to JobCreationProcess.DefaultJobPerformanceProcess renamed to JobPerformanceProcess.IStateMachine and IStateChangeProcess methods swapped with each other.Added – Allow to specify a custom queue for recurring jobs (#228, #379, #383 by @maleet).
Hangfire.Core
BackgroundJobServer via options.UseHangfireServer overloads with additional background processes.OverflowException in Dashboard when job duration exceeds int.MaxValue (#384 by @mavenius).Hangfire.SqlServer
SqlServerDistributedLock class is now public.Changed – ServerIds are now generated without ServerName, server names are deprecated.
Hangfire.Core
IBackgroundProcess interface that allows to implement custom background processes (relates to #167, #368, #379).BackgroundServer class for creating a server instance with completely custom background processes (relates to #263, #373, #374).JobActivatorScope class to support custom IoC scopes/lifetimes (relates to #198, #204, #329, #330).BackgroundJobServer instances in the same AppDomain without explicit server names (relates to #223).Task with TaskCreationOptions.LongRunning.Hangfire.SqlServer
TransactionTimeout option for configuring the TransactionScope timeout (relates to #381).DashboardJobListLimit option to prevent full table scans in Dashboard.JobQueue.Queue and Server.Id column length increased to 50 and 100 respectively (#314, #369, #376 by @maleet).Hangfire.SqlServer.Msmq
Fixed – TaskCanceledException causes the job to be Processing state indefinitely (#453).
Fixed – SQL command timeout in DisableConcurrentExecution filter (#428 by @Tom-Kelly).
DisableConcurrentExecution filter (#428 by @Tom-Kelly).ExpirationManager background process (#429).SchedulePoller when background job is missing or in another state (#425).Fixed NotSupportException "This stream does not support seek operations." in Dashboard buttons and stats. This bug was added in 1.4.4, relates to all
Fixed NotSupportException "This stream does not support seek operations." in Dashboard buttons and stats. This bug was added in 1.4.4, relates to all non-buffered HTTP requests.
Fixed – InvalidCastException in Dashboard when using Microsoft.Owin 3.0.1 package (#386, #399).
InvalidCastException in Dashboard when using Microsoft.Owin 3.0.1 package (#386, #399).Fixed – OverflowException on Job Details page when latency is too high (#372, #367 by @schulz3000).
Hangfire.Core
OverflowException on Job Details page when latency is too high (#372, #367 by @schulz3000).TypeNameHandling.All option (#363 by @tystol).Hangfire.SqlServer
CountersAggregator component (#362).Added – Missing generic methods for continuations (#357 by @yngndrw).
UseMsmqQueues (#360).JobStorageConnection (#345).build.bat on a machine with VS 2013 only (#339 by @Cussa).Fixed – 1.4.0 ignores BackgroundJobServerOptions settings in UseHangfireServer method (#336).
BackgroundJobServerOptions settings in UseHangfireServer method (#336).This is the next major release for Hangfire. Please check the blog post to see what's new: http://hangfire.io/blog/2015/04/13/hangfire-1.4.0.html.
This is the next major release for Hangfire. Please check the blog post to see what's new: http://hangfire.io/blog/2015/04/13/hangfire-1.4.0.html.
Hangfire.SqlServer schema changed to version 4. Please update it first if you disabled automatic migrations.
LogProvider implementation for IGlobalConfiguration.This is a pre-release version of Hangfire 1.4.0 that is considered to be stable (and it is more stable than 1.3.x). Final version will be released aft
This is a pre-release version of Hangfire 1.4.0 that is considered to be stable (and it is more stable than 1.3.x). Final version will be released after documentation changes (some awesome features added, please see 1.4.0-beta1).
BackgroundJobServer's Start and Stop methods are obsolete.This is a pre-release version of Hangfire 1.4.0 that is considered to be stable (and it is more stable than 1.3.x). Final version will be released aft
This is a pre-release version of Hangfire 1.4.0 that is considered to be stable (and it is more stable than 1.3.x). Final version will be released after documentation changes (some awesome features added, please see 1.4.0-beta1).
serializable (original – #213).Added – Job continuations, please see new BackgroundJob.ContinueWith methods.
BackgroundJob.ContinueWith methods.TimeZoneInfo class.GlobalConfiguration class.JobStorageConnection and JobStorageTransaction classes.IAppBuilder extension methods: UseHangfireDashboard and UseHangfireServer.MethodCallExpression has Object property set.serializable.Hangfire.Counter table.with tablock hint from the expiration cleanup (by @travisblakeney).GetCount method with native implementation.RabbitMQConnectionConfiguration (by @dennyferra).This is a correcting release that fixes hourly/weekly statistics display in Dashboard, and a rare issue when we trying to cancel a recurring job from
This is a correcting release that fixes hourly/weekly statistics display in Dashboard, and a rare issue when we trying to cancel a recurring job from a client filter.
RecurringJobScheduler when job creation has canceled (#300).This is a correcting release. Fixed a bug related to MSMQ or RabbitMQ extensions, when enqueued job is not being processed and "stucked" in the _Enque
This is a correcting release. Fixed a bug related to MSMQ or RabbitMQ extensions, when enqueued job is not being processed and "stucked" in the Enqueued state indefinitely until we retry it manually.
This is a correcting release. Expiration manager does not attempt to remove all the records at once now. Instead, it removes them by 1000 at a time, s
This is a correcting release. Expiration manager does not attempt to remove all the records at once now. Instead, it removes them by 1000 at a time, so you won't experience timeout exceptions anymore. If you had problems with recurring jobs, they were fixed also.
KeyNotFoundException on /hangfire/succeeded page (#286).This is a recommended upgrade unless you want to manually restart your application after temporal storage outages.
This is a recommended upgrade unless you want to manually restart your application after temporal storage outages.
Please see the corresponding blog post for the details.
Please see the corresponding blog post for the details.
*.pdb and source files (#271).ServerTimeout option (#276).LibLog package instead of Common.Logging for logging (#265).Hangfire.SqlServer is now merged with Dapper package (#266).Dapper package updated to 1.38 (#272).Microsoft.Owin.Host.SystemWeb to the latest version (#268).Nothing published for this version
Nothing published for this version
Changed – Add constraint for Common.Logging package to support only versions 2.2.0 and below (#257).
If you are using Hangfire.SqlServer storage and tried to place the BackgroundJob.Enqueue method call inside a TransactionScope transaction, you have p
TransactionScope? Say goodbye to MSDTC!If you are using Hangfire.SqlServer storage and tried to place the BackgroundJob.Enqueue method call inside a TransactionScope transaction, you have probably noticed that the transaction is being escalated to the distributed one.
If you faced with the MSDTC on server 'XXX' is unavailable exception and turned on the Distributed Transaction Coordinator service, this post is for you either. You are not required to use slow distributed transactions and MSDTC service anymore.
To forget about distributed transactions, you should:
BackgroundJob class and start to use BackgroundJobClient class instance for creating background jobs.SqlConection class to the SqlServerStorage constructor.BackgroundJobClient instance.BackgroundJobServer class!using (var transaction = new TransactionScope())
{
using (var connection = new SqlConnection(connectionString))
{
connection.Open();
/* ... other SQL statements ... */
var storage = new SqlServerStorage(connection);
var client = new BackgroundJobClient(storage);
client.Enqueue(() => Console.WriteLine("MSDTC is not required for these lines!"));
}
transaction.Complete();
}
SqlConnection to SqlServerStorage (#253).NotSupportedException for methods returning Task (#255).I want to keep Hangfire project as free as possible, but eliminate the most dangerous risk – the absence of time. There are many things to be done, in
I want to keep Hangfire project as free as possible, but eliminate the most dangerous risk – the absence of time. There are many things to be done, including problems, new features, documentation, and I want to do them in a reasonable time.
I'm introducing a new stage of Hangfire development – Hangfire Pro. It is a set of paid libraries that extend Hangfire functionality by providing features to improve performance and simplifying maintenance of background job processing in larger applications.
Hangfire.Redis package moved to the Pro version. You can read more about these changes in the corresponding blog post.
You can now use generic methods in your background jobs. As always, the usage is very simple:
// Just define a class...
public class GenericServices<TType>
{
public void Method<TMethod>(TType arg1, TMethod arg2)
{
Console.WriteLine("Arg1: {0}, Arg2: {1}", arg1, arg2);
}
}
// ...and create a background job
BackgroundJob.Enqueue<GenericServices<string>>(x => x.Method("hello", 1));
WorkerCount setting (#246).Dispose method instead of Stop for graceful shutdown (#244).Func and OwinMiddleware (#242).…authorization filters. It contains minor breaking change, please see the linked issue for the details.
This release fixes the problem added with Hangfire 1.1.0 release related with unability to use dashboard authorization filters. It contains minor breaking change, please see the linked issue for the details.
IAuthorizationFilter.Authorize method issues with IOwinContext interface (#202).If you use the Hangfire.Dashboard.Authorization package, please update it first, its version 2.0.0 uses new IAuthorizationFilter.Authorize method definition.
If you have custom authentication filters, please update their signature to the following one:
public void Authorize(IDictionary<string, object> owinEnvironment)
{
// In case you need an OWIN context, use the next line.
var context = new OwinContext(owinEnvironment);
/* ... */
}
JSON serialization does not introduce a breaking change - your old jobs will be handled gracefully using corresponding TypeConverter.
This release introduced JSON serialization for background job arguments. All constraints caused by using TypeConverter were eliminated - you can use arrays, collections and custom classes/structs (see Newtonsoft.Json documentation for the details). JSON serialization does not introduce a breaking change - your old jobs will be handled gracefully using corresponding TypeConverter.
Major step was made to kick off dependency burden. To simplify the development and maintanance, Hangfire uses some external packages available on NuGet to perform serialization, logging, scheduling, etc. In earlier versions all of these packages installed together with the Hangfire.Core assembly, but in this release half of them (Microsoft.Owin, NCrontab, CronExpressionDescriptor) are being merged internally to the core assembly using ILMerge tool with /internalize switch. This change allows Hangfire to support more project environments.
Please see linked issues to learn more about other changes in this release.
NCrontab, CronExpressionDescriptor and Microsoft.Owin dependencies merged with Hangfire.Core and internalized (#194).ArgumentNullException is being thrown on job completion (#180).RecurringJobScheduler class (#176).Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed – Dashboard pages: missing ContentType header (#154).
Nothing published for this version
Hangfire has finally reached the 1.0 milestone! This means that public API is frozen and considered to be stable. Starting from now, the SemVer 2.0 sp
Hangfire has finally reached the 1.0 milestone! This means that public API is frozen and considered to be stable. Starting from now, the SemVer 2.0 specification will be used for versioning every package (but there may be exceptions, follow the README for each package).
I want to thank everyone who helped me to reach this milestone, without your participation I would not be able to finish the work. Special thanks:
Hangfire (not HangFire, #147).Hangfire.Core now contains the dashboard. There is no more Hangfire.Web./hangfire (without .axd suffix).Enqueue method overloads with queue parameter (#140).AspNetBackgroundJobServer class.If you have only Hangfire package installed, package update is very simple. Just type in your Package Manager Console window:
PM> Update-Package Hangfire
For custom installations, first update each package, and then remove the Hangfire.Web:
PM> Update-Package Hangfire.Core
PM> Uninstall-Package Hangfire.Web
HangFire (case-sensitive) to Hangfire (lowercased f letter) in your projects.UseHangfire extension method for OWIN app builder instead of AspNetBackgroundJobServer./hangfire.axd to /hangfire.Nothing published for this version
Changed – Improve resolution of metrics to milliseconds (#100).
ArgumentNullException on Recurring Jobs page (#118).FormatException when parsing DateTime arguments (#119).Version 0.9 brings some breaking changes. Please, do the following steps to perform the upgrade.
Please see the blog post for more details.
SqlServerStorage now also accepts connection string names (#51). Thanks to @dlongest!IBackgroundJobClient does not implement the IDisposable interface anymore (#98).IMonitoringApi does not implement the IDisposable interface anymore (#110). Thanks to @sgwill!DateTime resolution for job arguments by including milliseconds (#109). Thanks to @dennyferra!RetryAttribute class. Please, use AutomaticRetryAttribute (#97).KeyNotFoundException when accessing job cancellation token with Redis (#116).Version 0.9 brings some breaking changes. Please, do the following steps to perform the upgrade.
RetryAttribute with AutomaticRetryAttribute.Dispose method of IBackgroundJobClient interface (or BackgroundJobClient class).IMonitoringApi.Dispose method.Update urgency: HIGH, especially if you want to delete old failed jobs with absent target methods, or have long-running jobs and experience "thread ab
Update urgency: HIGH, especially if you want to delete old failed jobs with absent target methods, or have long-running jobs and experience "thread aborted" message in logs.
This release contains only new features that improve job management operations, upgrade is not required.
This release contains only new features that improve job management operations, upgrade is not required.
Changed - RetryAttribute is deprecated. Use AutomaticRetryAttribute instead.
This release contains great new features, but upgrade is not required. Please, see the blog post for details.
BackgroundJob.Requeue and BackgroundJob.Delete methods.InvisibleTimeout back from 5 to 30 minutes (#90).RetryAttribute is deprecated. Use AutomaticRetryAttribute instead.Changed – Some breaking changes for public API. See the next section for details.
Update urgency: HIGH. This release contains features related to security.
using statements.SqlServerStorageOptions.QueuePollInterval is not working.BackgroundJobServer and AspNetBackgroundJobServer classes. You should pass options through the BackgroundJobServerOptions class.JobActivator.SetCurrent method replaced with JobActivator.Current property setter.RetryAttribute, StatisticsHistoryAttribute, PreserveCultureAttribute (now CaptureCultureAttribute) moved from HangFire.Filters namespace to the HangFire namespace.RedisStorageOptions.PollInterval option moved to BackgroundJobServerOptions.SchedulePollingInterval.BackgroundJob.ClientFactory property made internal. Please, use IBackgroundJobClient interface for unit tests, and BackgroundJobClient class as default implementation.If you are still using HangFire 0.5, you can not upgrade to version 0.8 directly, because there is probability that you lose some of your jobs. This version drops support for jobs based on BackgroundJob subclassing, so you need to do the following three-step process:
### Release notes Update urgency: LOW. - #66 – Added possibility to change the job expiration time through extension filters (thanks to @hahmed). - #6
Update urgency: LOW.
Update urgency: HIGH. This release contains fix for serious problem.
Update urgency: HIGH. This release contains fix for serious problem.
BackgroundJobServer.MachineName validation. It caused exceptions with valid NetBIOS names. Thanks to @hahmed for reporting!IBackgroundJobClient and BackgroundJobClient types. You can use them instead of static BackgroundJob class.BackgroundJob.Enqueue method.IClientFilter issue (CreateContext ctor did not copy the JobId).Update urgency: LOW. You need to install this version only if you are planning to use HangFire.Redis and don't want to experience issue #53.
Update urgency: LOW. You need to install this version only if you are planning to use HangFire.Redis and don't want to experience issue #53.
Nothing published for this version
This release contains some minor fixes and link updates, upgrade is not required.
This release contains some minor fixes and link updates, upgrade is not required.
Dear 0.7-alpha users! Please, DROP ALL HangFire tables before using this release!
Dear 0.7-alpha users! Please, DROP ALL HangFire tables before using this release!
Perform class. Please, see how to update your old jobs.NuGet package structure has been changed. SQL Server job storage implementation now installed by default with the HangFire package. If you are using Redis as a storage and don't want to change anything, please, do the following steps:
Uninstall-Package HangFireUninstall-Package HangFire.CoreInstall-Package HangFire.RedisInstall-Package HangFire.Webpublic static void Start()
{
// Place this line in the top of the Start method.
JobStorage.Current = new RedisStorage("localhost:6379", 0);
// ...
var server = /* ... */
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.