Rystem.BackgroundJob 9.0.0

dotnet add package Rystem.BackgroundJob --version 9.0.0                
NuGet\Install-Package Rystem.BackgroundJob -Version 9.0.0                
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="9.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rystem.BackgroundJob --version 9.0.0                
#r "nuget: Rystem.BackgroundJob, 9.0.0"                
#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.
// Install Rystem.BackgroundJob as a Cake Addin
#addin nuget:?package=Rystem.BackgroundJob&version=9.0.0

// Install Rystem.BackgroundJob as a Cake Tool
#tool nuget:?package=Rystem.BackgroundJob&version=9.0.0                

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 net9.0 is compatible. 
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
9.0.0 12,268 11/16/2024
9.0.0-rc.1 73 10/18/2024
6.2.0 218,988 10/9/2024
6.1.1 101 10/9/2024
6.1.0 47,867 9/29/2024
6.0.24 140 9/11/2024
6.0.23 123 7/18/2024
6.0.21 120 6/18/2024
6.0.20 127 6/16/2024
6.0.19 121 6/14/2024
6.0.18 107 6/14/2024
6.0.17 113 6/14/2024
6.0.16 115 6/10/2024
6.0.15 110 6/9/2024
6.0.14 145 5/24/2024
6.0.13 126 5/23/2024
6.0.12 111 5/23/2024
6.0.11 120 5/20/2024
6.0.9 128 5/20/2024
6.0.7 113 5/18/2024
6.0.6 89 5/10/2024
6.0.5 96 5/10/2024
6.0.4 142 4/3/2024
6.0.3 292 3/25/2024
6.0.2 2,398 3/11/2024
6.0.1 178 3/8/2024
6.0.0 559 11/21/2023
6.0.0-rc.6 102 10/25/2023
6.0.0-rc.5 81 10/25/2023
6.0.0-rc.4 69 10/23/2023
6.0.0-rc.3 64 10/19/2023
6.0.0-rc.2 72 10/18/2023
6.0.0-rc.1 72 10/16/2023
5.0.20 723 9/25/2023
5.0.19 1,305 9/10/2023
5.0.18 535 9/6/2023
5.0.17 519 9/6/2023
5.0.16 512 9/5/2023
5.0.15 499 9/5/2023
5.0.14 539 9/5/2023
5.0.13 655 9/1/2023
5.0.12 495 8/31/2023
5.0.11 491 8/30/2023
5.0.10 536 8/29/2023
5.0.9 521 8/24/2023
5.0.8 515 8/24/2023
5.0.7 506 8/23/2023
5.0.6 531 8/21/2023
5.0.5 522 8/21/2023
5.0.4 541 8/16/2023
5.0.3 622 8/2/2023
5.0.2 597 8/2/2023
5.0.1 653 8/1/2023
5.0.0 624 7/31/2023
4.1.26 972 7/20/2023
4.1.25 623 7/16/2023
4.1.24 716 6/13/2023
4.1.23 607 6/13/2023
4.1.22 586 5/30/2023
4.1.21 615 5/20/2023
4.1.20 315,810 4/19/2023
4.1.19 95,320 3/20/2023
4.1.18 701 3/20/2023
4.1.17 688 3/16/2023
4.1.16 676 3/16/2023
4.1.15 1,138 3/15/2023
4.1.14 1,803 3/9/2023
4.1.13 647 3/7/2023
4.1.12 726 2/10/2023
4.1.11 746 1/26/2023
4.1.10 753 1/22/2023
4.1.9 758 1/20/2023
4.1.8 763 1/18/2023
4.1.7 779 1/18/2023
4.1.6 761 1/17/2023
4.1.1 752 1/4/2023
4.1.0 768 12/30/2022
3.0.25 858 12/21/2022
3.0.24 864 11/18/2022
3.0.23 858 11/18/2022
3.0.22 880 11/15/2022
3.0.21 850 11/14/2022
3.0.20 875 11/13/2022
3.0.19 899 11/2/2022
3.0.18 883 11/2/2022
3.0.17 945 10/29/2022
3.0.16 937 10/29/2022
3.0.15 922 10/29/2022
2.0.6 964 9/20/2022
2.0.5 953 9/20/2022
2.0.4 868 9/20/2022
2.0.3 1,003 9/20/2022
2.0.1 1,069 9/13/2022
2.0.0 880 8/19/2022
1.1.23 1,123 7/30/2022
1.1.22 1,012 7/29/2022
1.1.21 968 7/29/2022
1.1.20 1,020 7/29/2022
1.1.19 1,044 7/27/2022
1.1.17 970 7/27/2022
1.1.15 992 7/25/2022
1.1.14 1,001 7/25/2022
1.1.13 955 7/22/2022
1.1.12 993 7/19/2022
1.1.11 1,008 7/19/2022
1.1.10 998 7/19/2022
1.1.9 1,013 7/19/2022
1.1.8 995 7/18/2022
1.1.7 989 7/18/2022
1.1.6 988 7/18/2022
1.0.4 1,018 7/17/2022
1.0.2 1,062 7/17/2022
1.0.1 899 7/12/2022
1.0.0 1,280 7/8/2022
0.10.7 1,055 7/8/2022
0.9.11 1,021 6/30/2022
0.9.10 970 6/29/2022
0.9.9 986 6/28/2022