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 | 34 | a day ago |
3.0.63 | 37 | a day ago |
3.0.62 | 43 | a day ago |
3.0.61 | 32 | a day ago |
3.0.60 | 27 | a day ago |
3.0.59 | 41 | 2 days ago |
3.0.58 | 45 | 2 days ago |
3.0.57 | 37 | 2 days ago |
3.0.56 | 40 | 2 days ago |
3.0.55 | 40 | 2 days ago |
3.0.54 | 40 | 2 days ago |
3.0.53 | 41 | 2 days ago |
3.0.52 | 38 | 2 days ago |
3.0.51 | 60 | 2 days ago |
3.0.50 | 50 | 2 days ago |
3.0.49 | 45 | 2 days ago |
3.0.48 | 55 | 2 days ago |
3.0.47 | 61 | 2 days ago |
3.0.46 | 64 | 2 days ago |
3.0.45 | 57 | 2 days ago |
3.0.44 | 64 | 2 days ago |
3.0.43 | 83 | 3 days ago |
3.0.42 | 63 | 3 days ago |
3.0.41 | 63 | 3 days ago |
3.0.40 | 58 | 3 days ago |
3.0.39 | 63 | 3 days ago |
3.0.38 | 62 | 3 days ago |
3.0.37 | 61 | 3 days ago |
3.0.36 | 62 | 3 days ago |
3.0.35 | 60 | 3 days ago |
3.0.34 | 58 | 3 days ago |
3.0.33 | 63 | 3 days ago |
3.0.32 | 65 | 3 days ago |
3.0.31 | 61 | 4 days ago |
3.0.30 | 66 | 4 days ago |
3.0.29 | 60 | 4 days ago |
3.0.28 | 60 | 4 days ago |
3.0.27 | 64 | 4 days ago |
3.0.26 | 66 | 4 days ago |
3.0.25 | 61 | 4 days ago |
3.0.24 | 72 | 4 days ago |
3.0.23 | 63 | 4 days ago |
3.0.22 | 64 | 4 days ago |
3.0.21 | 59 | 5 days ago |
3.0.20 | 64 | 5 days ago |
3.0.19 | 71 | 5 days ago |
3.0.18 | 62 | 5 days ago |
3.0.17 | 74 | 5 days ago |
3.0.16 | 81 | 5 days ago |
3.0.15 | 135 | 6 days ago |
3.0.14 | 130 | 6 days ago |
3.0.13 | 130 | 8 days ago |
3.0.12 | 131 | 8 days ago |
3.0.11 | 139 | 9 days ago |
3.0.10 | 144 | 9 days ago |
3.0.9 | 143 | 9 days ago |
3.0.8 | 133 | 9 days ago |
3.0.7 | 75 | 11 days ago |
3.0.6 | 81 | 11 days ago |
3.0.5 | 458 | 15 days ago |
3.0.4 | 461 | 15 days ago |
3.0.3 | 456 | 15 days ago |
3.0.2 | 456 | 16 days ago |
3.0.1 | 254 | 17 days ago |