Soenneker.Hangfire.Util
3.0.64
Prefix Reserved
dotnet add package Soenneker.Hangfire.Util --version 3.0.64
NuGet\Install-Package Soenneker.Hangfire.Util -Version 3.0.64
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.64" />
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.64" />
<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.64
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Hangfire.Util, 3.0.64"
#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.
#addin nuget:?package=Soenneker.Hangfire.Util&version=3.0.64
#tool nuget:?package=Soenneker.Hangfire.Util&version=3.0.64
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Hangfire.Core (>= 1.8.18)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.4)
- Microsoft.Extensions.Options (>= 9.0.4)
- Soenneker.Hangfire.SkipMissedRuns (>= 3.0.656)
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.64 | 238 | 4 days ago |
3.0.63 | 122 | 4 days ago |
3.0.62 | 124 | 4 days ago |
3.0.61 | 116 | 4 days ago |
3.0.60 | 110 | 4 days ago |
3.0.59 | 122 | 4 days ago |
3.0.58 | 125 | 4 days ago |
3.0.57 | 118 | 4 days ago |
3.0.56 | 117 | 4 days ago |
3.0.55 | 113 | 5 days ago |
3.0.54 | 116 | 5 days ago |
3.0.53 | 116 | 5 days ago |
3.0.52 | 111 | 5 days ago |
3.0.51 | 135 | 5 days ago |
3.0.50 | 123 | 5 days ago |
3.0.49 | 118 | 5 days ago |
3.0.48 | 128 | 5 days ago |
3.0.47 | 134 | 5 days ago |
3.0.46 | 139 | 5 days ago |
3.0.45 | 130 | 5 days ago |
3.0.44 | 137 | 5 days ago |
3.0.43 | 156 | 5 days ago |
3.0.42 | 138 | 5 days ago |
3.0.41 | 138 | 5 days ago |
3.0.40 | 131 | 5 days ago |
3.0.39 | 136 | 5 days ago |
3.0.38 | 137 | 5 days ago |
3.0.37 | 136 | 6 days ago |
3.0.36 | 137 | 6 days ago |
3.0.35 | 133 | 6 days ago |
3.0.34 | 131 | 6 days ago |
3.0.33 | 138 | 6 days ago |
3.0.32 | 142 | 6 days ago |
3.0.31 | 134 | 6 days ago |
3.0.30 | 120 | 6 days ago |
3.0.29 | 109 | 6 days ago |
3.0.28 | 111 | 6 days ago |
3.0.27 | 118 | 6 days ago |
3.0.26 | 88 | 7 days ago |
3.0.25 | 83 | 7 days ago |
3.0.24 | 94 | 7 days ago |
3.0.23 | 64 | 7 days ago |
3.0.22 | 67 | 7 days ago |
3.0.21 | 61 | 7 days ago |
3.0.20 | 68 | 7 days ago |
3.0.19 | 76 | 7 days ago |
3.0.18 | 65 | 8 days ago |
3.0.17 | 75 | 8 days ago |
3.0.16 | 82 | 8 days ago |
3.0.15 | 138 | 9 days ago |
3.0.14 | 133 | 9 days ago |
3.0.13 | 131 | 11 days ago |
3.0.12 | 133 | 11 days ago |
3.0.11 | 141 | 12 days ago |
3.0.10 | 147 | 12 days ago |
3.0.9 | 146 | 12 days ago |
3.0.8 | 136 | 12 days ago |
3.0.7 | 76 | 14 days ago |
3.0.6 | 82 | 14 days ago |
3.0.5 | 458 | 18 days ago |
3.0.4 | 461 | 18 days ago |
3.0.3 | 456 | 18 days ago |
3.0.2 | 456 | 18 days ago |
3.0.1 | 254 | 20 days ago |