Soenneker.Hangfire.Util
3.0.104
Prefix Reserved
dotnet add package Soenneker.Hangfire.Util --version 3.0.104
NuGet\Install-Package Soenneker.Hangfire.Util -Version 3.0.104
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Hangfire.Util" Version="3.0.104" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Hangfire.Util" Version="3.0.104" />
<PackageReference Include="Soenneker.Hangfire.Util" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Hangfire.Util --version 3.0.104
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Hangfire.Util, 3.0.104"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Hangfire.Util@3.0.104
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Hangfire.Util&version=3.0.104
#tool nuget:?package=Soenneker.Hangfire.Util&version=3.0.104
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Hangfire.Util
A general-purpose, reusable utility class for managing Hangfire background jobs
Installation
dotnet add package Soenneker.Hangfire.Util
builder.Services.Configure<HangfireUtilOptions>(options =>
{
options.BatchSize = 200;
options.NotifyOnUnhandledFailedJobs = true;
options.ShouldDeleteFailedJob = job =>
{
// Example: Only delete jobs older than 7 days
return job.FailedAt < DateTime.UtcNow.AddDays(-7);
};
options.ShouldDeleteSucceededJob = job =>
{
// Example: Delete all successful jobs older than 1 day
return job.SucceededAt < DateTime.UtcNow.AddDays(-1);
};
});
// Register the HangfireUtil service
builder.Services.AddHangfireUtilAsSingleton();
RecurringJob.AddOrUpdate<IHangfireUtil>($"{nameof(IHangfireUtil.DeleteFailedJobs)}", c => c.DeleteFailedJobs(), "0 0 * * *");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.9)
- Microsoft.Extensions.Options (>= 9.0.9)
- Soenneker.Hangfire.SkipMissedRuns (>= 3.0.668)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.0.104 | 118 | 9/10/2025 |
3.0.103 | 123 | 9/9/2025 |
3.0.102 | 122 | 9/9/2025 |
3.0.101 | 143 | 9/3/2025 |
3.0.100 | 136 | 9/3/2025 |
3.0.99 | 160 | 8/12/2025 |
3.0.98 | 130 | 8/12/2025 |
3.0.97 | 123 | 8/11/2025 |
3.0.96 | 126 | 8/11/2025 |
3.0.95 | 208 | 8/5/2025 |
3.0.94 | 190 | 8/5/2025 |
3.0.93 | 564 | 7/21/2025 |
3.0.92 | 478 | 7/21/2025 |
3.0.91 | 489 | 7/21/2025 |
3.0.90 | 484 | 7/21/2025 |
3.0.89 | 485 | 7/21/2025 |
3.0.88 | 264 | 7/8/2025 |
3.0.87 | 140 | 7/8/2025 |
3.0.86 | 272 | 7/3/2025 |
3.0.85 | 138 | 7/3/2025 |
3.0.84 | 219 | 6/27/2025 |
3.0.83 | 84 | 6/27/2025 |
3.0.82 | 481 | 6/10/2025 |
3.0.81 | 294 | 6/10/2025 |
3.0.80 | 363 | 5/27/2025 |
3.0.79 | 145 | 5/27/2025 |
3.0.78 | 158 | 5/22/2025 |
3.0.77 | 141 | 5/22/2025 |
3.0.76 | 190 | 5/16/2025 |
3.0.75 | 189 | 5/16/2025 |
3.0.74 | 212 | 5/16/2025 |
3.0.73 | 217 | 5/16/2025 |
3.0.72 | 239 | 5/14/2025 |
3.0.71 | 227 | 5/13/2025 |
3.0.70 | 225 | 5/8/2025 |
3.0.69 | 156 | 5/7/2025 |
3.0.68 | 168 | 5/5/2025 |
3.0.67 | 144 | 5/5/2025 |
3.0.66 | 147 | 5/5/2025 |
3.0.65 | 144 | 5/5/2025 |
3.0.64 | 525 | 4/8/2025 |
3.0.63 | 171 | 4/8/2025 |
3.0.62 | 177 | 4/8/2025 |
3.0.61 | 165 | 4/8/2025 |
3.0.60 | 160 | 4/8/2025 |
3.0.59 | 175 | 4/8/2025 |
3.0.58 | 172 | 4/8/2025 |
3.0.57 | 165 | 4/8/2025 |
3.0.56 | 167 | 4/8/2025 |
3.0.55 | 164 | 4/8/2025 |
3.0.54 | 161 | 4/8/2025 |
3.0.53 | 164 | 4/8/2025 |
3.0.52 | 162 | 4/8/2025 |
3.0.51 | 175 | 4/8/2025 |
3.0.50 | 168 | 4/7/2025 |
3.0.49 | 162 | 4/7/2025 |
3.0.48 | 160 | 4/7/2025 |
3.0.47 | 158 | 4/7/2025 |
3.0.46 | 164 | 4/7/2025 |
3.0.45 | 160 | 4/7/2025 |
3.0.44 | 169 | 4/7/2025 |
3.0.43 | 182 | 4/7/2025 |
3.0.42 | 165 | 4/7/2025 |
3.0.41 | 167 | 4/7/2025 |
3.0.40 | 159 | 4/7/2025 |
3.0.39 | 166 | 4/7/2025 |
3.0.38 | 164 | 4/7/2025 |
3.0.37 | 167 | 4/7/2025 |
3.0.36 | 163 | 4/7/2025 |
3.0.35 | 163 | 4/6/2025 |
3.0.34 | 156 | 4/6/2025 |
3.0.33 | 164 | 4/6/2025 |
3.0.32 | 172 | 4/6/2025 |
3.0.31 | 158 | 4/6/2025 |
3.0.30 | 149 | 4/6/2025 |
3.0.29 | 141 | 4/6/2025 |
3.0.28 | 140 | 4/6/2025 |
3.0.27 | 146 | 4/6/2025 |
3.0.26 | 114 | 4/6/2025 |
3.0.25 | 109 | 4/6/2025 |
3.0.24 | 119 | 4/5/2025 |
3.0.23 | 89 | 4/5/2025 |
3.0.22 | 96 | 4/5/2025 |
3.0.21 | 84 | 4/5/2025 |
3.0.20 | 92 | 4/5/2025 |
3.0.19 | 101 | 4/5/2025 |
3.0.18 | 92 | 4/5/2025 |
3.0.17 | 97 | 4/4/2025 |
3.0.16 | 104 | 4/4/2025 |
3.0.15 | 159 | 4/4/2025 |
3.0.14 | 159 | 4/4/2025 |
3.0.13 | 152 | 4/1/2025 |
3.0.12 | 157 | 4/1/2025 |
3.0.11 | 163 | 4/1/2025 |
3.0.10 | 168 | 3/31/2025 |
3.0.9 | 168 | 3/31/2025 |
3.0.8 | 157 | 3/31/2025 |
3.0.7 | 98 | 3/29/2025 |
3.0.6 | 104 | 3/29/2025 |
3.0.5 | 482 | 3/25/2025 |
3.0.4 | 489 | 3/25/2025 |
3.0.3 | 481 | 3/25/2025 |
3.0.2 | 480 | 3/25/2025 |
3.0.1 | 278 | 3/23/2025 |