Rystem.BackgroundJob 10.0.1

dotnet add package Rystem.BackgroundJob --version 10.0.1
                    
NuGet\Install-Package Rystem.BackgroundJob -Version 10.0.1
                    
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="Rystem.BackgroundJob" Version="10.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.BackgroundJob" Version="10.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Rystem.BackgroundJob" />
                    
Project file
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 Rystem.BackgroundJob --version 10.0.1
                    
#r "nuget: Rystem.BackgroundJob, 10.0.1"
                    
#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 Rystem.BackgroundJob@10.0.1
                    
#: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=Rystem.BackgroundJob&version=10.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Rystem.BackgroundJob&version=10.0.1
                    
Install as a Cake Tool

Background job

Background job is a library that helps to create a background thread in your application (webapp or similar). With the dependency injection pattern, you may set che CRON value (when your job has to run), link to create CRON. You may set to true the RunImmediately if you want to run one time during your bootstrap. You may set the Key to allow the possibility to have more than one job with the same class on the same instance.

builder.Services.AddBackgroundJob<BackgroundJob>(
    x =>
    {
        x.Cron = "*/1 * * * *";
        x.RunImmediately = true;
        x.Key = "alzo";
    });

Your class BackgroundJob has to extend IBackgrounJob and you may warm up it during the bootstrap.

var app = builder.Build();
await app.Services.WarmUpAsync();

In IBackgroundJob you have ActionToDoAsync, it's the main method, called when the cron is fired; and OnException to catch the possibile exception during the main method run.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Rystem.BackgroundJob:

Package Downloads
Rystem.Queue

Rystem.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.1 286 11/12/2025
9.1.3 315 9/2/2025
9.1.2 764,514 5/29/2025
9.1.1 97,829 5/2/2025
9.0.32 186,674 4/15/2025
9.0.31 5,806 4/2/2025
9.0.30 88,840 3/26/2025
9.0.29 8,992 3/18/2025
9.0.28 240 3/17/2025
9.0.27 244 3/16/2025
9.0.26 235 3/13/2025
9.0.25 52,123 3/9/2025
9.0.21 311 3/6/2025
9.0.20 19,561 3/6/2025
9.0.19 291 3/6/2025
9.0.18 318 3/4/2025
9.0.17 203 3/1/2025
9.0.16 175 3/1/2025
9.0.15 75,560 2/22/2025
9.0.14 22,581 2/18/2025
9.0.13 203 2/9/2025
9.0.12 217,674 1/13/2025
9.0.11 24,044 1/9/2025
9.0.10 131 1/9/2025
9.0.9 4,044 1/7/2025
9.0.8 12,546 1/6/2025
9.0.7 180 1/6/2025
9.0.4 92,341 12/23/2024
9.0.3 206 12/22/2024
9.0.2 10,732 12/21/2024
9.0.1 1,262 12/21/2024
9.0.0 173,067 11/16/2024
9.0.0-rc.1 140 10/18/2024
6.2.0 220,631 10/9/2024
6.1.1 239 10/9/2024
6.1.0 47,976 9/29/2024
6.0.24 243 9/11/2024
6.0.23 222 7/18/2024
6.0.21 222 6/18/2024
6.0.20 264 6/16/2024
6.0.19 232 6/14/2024
6.0.18 233 6/14/2024
6.0.17 207 6/14/2024
6.0.16 205 6/10/2024
6.0.15 241 6/9/2024
6.0.14 242 5/24/2024
6.0.13 221 5/23/2024
6.0.12 206 5/23/2024
6.0.11 247 5/20/2024
6.0.9 248 5/20/2024
6.0.7 208 5/18/2024
6.0.6 213 5/10/2024
6.0.5 195 5/10/2024
6.0.4 227 4/3/2024
6.0.3 413 3/25/2024
6.0.2 3,844 3/11/2024
6.0.1 276 3/8/2024
6.0.0 646 11/21/2023
6.0.0-rc.6 152 10/25/2023
6.0.0-rc.5 143 10/25/2023
6.0.0-rc.4 137 10/23/2023
6.0.0-rc.3 128 10/19/2023
6.0.0-rc.2 133 10/18/2023
6.0.0-rc.1 144 10/16/2023
5.0.20 817 9/25/2023
5.0.19 1,389 9/10/2023
5.0.18 619 9/6/2023
5.0.17 607 9/6/2023
5.0.16 618 9/5/2023
5.0.15 612 9/5/2023
5.0.14 646 9/5/2023
5.0.13 763 9/1/2023
5.0.12 578 8/31/2023
5.0.11 576 8/30/2023
5.0.10 642 8/29/2023
5.0.9 619 8/24/2023
5.0.8 624 8/24/2023
5.0.7 597 8/23/2023
5.0.6 626 8/21/2023
5.0.5 617 8/21/2023
5.0.4 625 8/16/2023
5.0.3 742 8/2/2023
5.0.2 703 8/2/2023
5.0.1 748 8/1/2023
5.0.0 712 7/31/2023
4.1.26 1,114 7/20/2023
4.1.25 735 7/16/2023
4.1.24 836 6/13/2023
4.1.23 712 6/13/2023
4.1.22 697 5/30/2023
4.1.21 726 5/20/2023
4.1.20 315,943 4/19/2023
4.1.19 95,434 3/20/2023
4.1.18 810 3/20/2023
4.1.17 804 3/16/2023
4.1.16 789 3/16/2023
4.1.15 1,251 3/15/2023
4.1.14 1,936 3/9/2023
4.1.13 770 3/7/2023
4.1.12 845 2/10/2023
4.1.11 885 1/26/2023
4.1.10 874 1/22/2023
4.1.9 897 1/20/2023
4.1.8 905 1/18/2023
4.1.7 914 1/18/2023
4.1.6 904 1/17/2023
4.1.1 878 1/4/2023
4.1.0 904 12/30/2022
3.0.25 1,004 12/21/2022
3.0.24 1,000 11/18/2022
3.0.23 991 11/18/2022
3.0.22 1,003 11/15/2022
3.0.21 994 11/14/2022
3.0.20 996 11/13/2022
3.0.19 1,045 11/2/2022
3.0.18 1,036 11/2/2022
3.0.17 1,110 10/29/2022
3.0.16 1,091 10/29/2022
3.0.15 1,074 10/29/2022
2.0.6 1,120 9/20/2022
2.0.5 1,111 9/20/2022
2.0.4 993 9/20/2022
2.0.3 1,136 9/20/2022
2.0.1 1,203 9/13/2022
2.0.0 996 8/19/2022
1.1.23 1,296 7/30/2022
1.1.22 1,173 7/29/2022
1.1.21 1,121 7/29/2022
1.1.20 1,156 7/29/2022
1.1.19 1,179 7/27/2022
1.1.17 1,113 7/27/2022
1.1.15 1,107 7/25/2022
1.1.14 1,135 7/25/2022
1.1.13 1,106 7/22/2022
1.1.12 1,130 7/19/2022
1.1.11 1,144 7/19/2022
1.1.10 1,131 7/19/2022
1.1.9 1,141 7/19/2022
1.1.8 1,135 7/18/2022
1.1.7 1,150 7/18/2022
1.1.6 1,139 7/18/2022
1.0.4 1,170 7/17/2022
1.0.2 1,219 7/17/2022
1.0.1 1,018 7/12/2022
1.0.0 1,445 7/8/2022
0.10.7 1,207 7/8/2022
0.9.11 1,163 6/30/2022
0.9.10 1,138 6/29/2022
0.9.9 1,126 6/28/2022