Rystem.BackgroundJob
9.0.0
dotnet add package Rystem.BackgroundJob --version 9.0.0
NuGet\Install-Package Rystem.BackgroundJob -Version 9.0.0
<PackageReference Include="Rystem.BackgroundJob" Version="9.0.0" />
paket add Rystem.BackgroundJob --version 9.0.0
#r "nuget: Rystem.BackgroundJob, 9.0.0"
// 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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Cronos (>= 0.8.4)
- Rystem.Concurrency (>= 9.0.0)
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 | 15,528 | 11/16/2024 |
9.0.0-rc.1 | 74 | 10/18/2024 |
6.2.0 | 218,989 | 10/9/2024 |
6.1.1 | 102 | 10/9/2024 |
6.1.0 | 47,868 | 9/29/2024 |
6.0.24 | 141 | 9/11/2024 |
6.0.23 | 124 | 7/18/2024 |
6.0.21 | 121 | 6/18/2024 |
6.0.20 | 128 | 6/16/2024 |
6.0.19 | 122 | 6/14/2024 |
6.0.18 | 108 | 6/14/2024 |
6.0.17 | 114 | 6/14/2024 |
6.0.16 | 116 | 6/10/2024 |
6.0.15 | 111 | 6/9/2024 |
6.0.14 | 146 | 5/24/2024 |
6.0.13 | 127 | 5/23/2024 |
6.0.12 | 112 | 5/23/2024 |
6.0.11 | 121 | 5/20/2024 |
6.0.9 | 129 | 5/20/2024 |
6.0.7 | 114 | 5/18/2024 |
6.0.6 | 90 | 5/10/2024 |
6.0.5 | 97 | 5/10/2024 |
6.0.4 | 143 | 4/3/2024 |
6.0.3 | 293 | 3/25/2024 |
6.0.2 | 2,406 | 3/11/2024 |
6.0.1 | 179 | 3/8/2024 |
6.0.0 | 560 | 11/21/2023 |
6.0.0-rc.6 | 103 | 10/25/2023 |
6.0.0-rc.5 | 82 | 10/25/2023 |
6.0.0-rc.4 | 70 | 10/23/2023 |
6.0.0-rc.3 | 65 | 10/19/2023 |
6.0.0-rc.2 | 73 | 10/18/2023 |
6.0.0-rc.1 | 73 | 10/16/2023 |
5.0.20 | 724 | 9/25/2023 |
5.0.19 | 1,306 | 9/10/2023 |
5.0.18 | 536 | 9/6/2023 |
5.0.17 | 520 | 9/6/2023 |
5.0.16 | 513 | 9/5/2023 |
5.0.15 | 500 | 9/5/2023 |
5.0.14 | 540 | 9/5/2023 |
5.0.13 | 656 | 9/1/2023 |
5.0.12 | 496 | 8/31/2023 |
5.0.11 | 492 | 8/30/2023 |
5.0.10 | 537 | 8/29/2023 |
5.0.9 | 522 | 8/24/2023 |
5.0.8 | 516 | 8/24/2023 |
5.0.7 | 507 | 8/23/2023 |
5.0.6 | 532 | 8/21/2023 |
5.0.5 | 523 | 8/21/2023 |
5.0.4 | 542 | 8/16/2023 |
5.0.3 | 623 | 8/2/2023 |
5.0.2 | 598 | 8/2/2023 |
5.0.1 | 654 | 8/1/2023 |
5.0.0 | 625 | 7/31/2023 |
4.1.26 | 973 | 7/20/2023 |
4.1.25 | 624 | 7/16/2023 |
4.1.24 | 717 | 6/13/2023 |
4.1.23 | 608 | 6/13/2023 |
4.1.22 | 587 | 5/30/2023 |
4.1.21 | 616 | 5/20/2023 |
4.1.20 | 315,811 | 4/19/2023 |
4.1.19 | 95,321 | 3/20/2023 |
4.1.18 | 702 | 3/20/2023 |
4.1.17 | 689 | 3/16/2023 |
4.1.16 | 677 | 3/16/2023 |
4.1.15 | 1,139 | 3/15/2023 |
4.1.14 | 1,804 | 3/9/2023 |
4.1.13 | 648 | 3/7/2023 |
4.1.12 | 727 | 2/10/2023 |
4.1.11 | 747 | 1/26/2023 |
4.1.10 | 754 | 1/22/2023 |
4.1.9 | 759 | 1/20/2023 |
4.1.8 | 764 | 1/18/2023 |
4.1.7 | 780 | 1/18/2023 |
4.1.6 | 762 | 1/17/2023 |
4.1.1 | 753 | 1/4/2023 |
4.1.0 | 769 | 12/30/2022 |
3.0.25 | 859 | 12/21/2022 |
3.0.24 | 865 | 11/18/2022 |
3.0.23 | 859 | 11/18/2022 |
3.0.22 | 881 | 11/15/2022 |
3.0.21 | 851 | 11/14/2022 |
3.0.20 | 876 | 11/13/2022 |
3.0.19 | 900 | 11/2/2022 |
3.0.18 | 884 | 11/2/2022 |
3.0.17 | 946 | 10/29/2022 |
3.0.16 | 938 | 10/29/2022 |
3.0.15 | 925 | 10/29/2022 |
2.0.6 | 965 | 9/20/2022 |
2.0.5 | 954 | 9/20/2022 |
2.0.4 | 869 | 9/20/2022 |
2.0.3 | 1,004 | 9/20/2022 |
2.0.1 | 1,070 | 9/13/2022 |
2.0.0 | 881 | 8/19/2022 |
1.1.23 | 1,124 | 7/30/2022 |
1.1.22 | 1,013 | 7/29/2022 |
1.1.21 | 969 | 7/29/2022 |
1.1.20 | 1,021 | 7/29/2022 |
1.1.19 | 1,045 | 7/27/2022 |
1.1.17 | 971 | 7/27/2022 |
1.1.15 | 993 | 7/25/2022 |
1.1.14 | 1,002 | 7/25/2022 |
1.1.13 | 956 | 7/22/2022 |
1.1.12 | 994 | 7/19/2022 |
1.1.11 | 1,009 | 7/19/2022 |
1.1.10 | 999 | 7/19/2022 |
1.1.9 | 1,014 | 7/19/2022 |
1.1.8 | 996 | 7/18/2022 |
1.1.7 | 990 | 7/18/2022 |
1.1.6 | 989 | 7/18/2022 |
1.0.4 | 1,019 | 7/17/2022 |
1.0.2 | 1,063 | 7/17/2022 |
1.0.1 | 900 | 7/12/2022 |
1.0.0 | 1,281 | 7/8/2022 |
0.10.7 | 1,056 | 7/8/2022 |
0.9.11 | 1,022 | 6/30/2022 |
0.9.10 | 971 | 6/29/2022 |
0.9.9 | 987 | 6/28/2022 |