Sundial 2.66.0
dotnet add package Sundial --version 2.66.0
NuGet\Install-Package Sundial -Version 2.66.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="Sundial" Version="2.66.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sundial --version 2.66.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sundial, 2.66.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 Sundial as a Cake Addin #addin nuget:?package=Sundial&version=2.66.0 // Install Sundial as a Cake Tool #tool nuget:?package=Sundial&version=2.66.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sundial
.NET 功能齐全的开源分布式作业调度系统,可从最小的应用程序到大型企业系统使用。
安装
dotnet add package Sundial
快速入门
我们在主页上有不少例子,这是让您入门的第一个:
- 定义作业,并实现
IJob
接口:
public class MyJob : IJob
{
private readonly ILogger<MyJob> _logger;
public MyJob(ILogger<MyJob> logger)
{
_logger = logger;
}
public Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
{
_logger.LogInformation(context.ToString());
return Task.CompletedTask;
}
}
- 在
Startup.cs
注册AddSchedule
服务和作业:
services.AddSchedule(options =>
{
options.AddJob<MyJob>(Triggers.PeriodSeconds(5)); // 5s 执行一次
});
- 运行项目:
info: 2022-12-05 19:32:56.3835407 +08:00 星期一 L System.Logging.ScheduleService[0] #1
Schedule hosted service is running.
info: 2022-12-05 19:32:56.3913451 +08:00 星期一 L System.Logging.ScheduleService[0] #1
Schedule hosted service is preloading...
info: 2022-12-05 19:32:56.4322887 +08:00 星期一 L System.Logging.ScheduleService[0] #1
The <job1_trigger1> trigger for scheduler of <job1> successfully appended to the schedule.
info: 2022-12-05 19:32:56.4347959 +08:00 星期一 L System.Logging.ScheduleService[0] #1
The scheduler of <job1> successfully appended to the schedule.
warn: 2022-12-05 19:32:56.4504555 +08:00 星期一 L System.Logging.ScheduleService[0] #1
Schedule hosted service preload completed, and a total of <1> schedulers are appended.
info: 2022-12-05 19:33:01.5100177 +08:00 星期一 L MyJob[0] #13
+ <job1> [C] <job1 job1_trigger1> 5s 1ts 2022-12-05 19:33:01.395 -> 2022-12-05 19:33:06.428
info: 2022-12-05 19:33:06.4676792 +08:00 星期一 L MyJob[0] #13
+ <job1> [C] <job1 job1_trigger1> 5s 2ts 2022-12-05 19:33:06.428 -> 2022-12-05 19:33:11.435
info: 2022-12-05 19:33:11.4460946 +08:00 星期一 L MyJob[0] #16
+ <job1> [C] <job1 job1_trigger1> 5s 3ts 2022-12-05 19:33:11.435 -> 2022-12-05 19:33:16.412
JobExecutionContext
重写了 ToString()
方法并提供以下几种格式:
# 持续运行格式
<作业Id> 作业描述 [并行C/串行S] <作业Id 触发器Id> 触发器字符串 触发器描述 触发次数ts 触发时间 -> 下一次触发时间
# 触发停止格式
<作业Id> 作业描述 [并行C/串行S] <作业Id 触发器Id> 触发器字符串 触发器描述 触发次数ts 触发时间 [触发器终止状态]
文档
您可以在主页找到 Sundial 文档。
贡献
该存储库的主要目的是继续发展 Sundial 核心,使其更快、更易于使用。Sundial 的开发在 Gitee 上公开进行,我们感谢社区贡献错误修复和改进。
许可证
Sundial 采用 MIT 开源许可证。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.11.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
- TimeCrontab (>= 3.4.0)
-
net7.0
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.11.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
- System.Text.Json (>= 7.0.0)
- TimeCrontab (>= 3.4.0)
-
net8.0
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.11.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- System.Text.Json (>= 8.0.0)
- TimeCrontab (>= 3.4.0)
-
net9.0
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 4.11.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- System.Text.Json (>= 9.0.0)
- TimeCrontab (>= 3.4.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Sundial:
Package | Downloads |
---|---|
Sundial.Dashboard
Sundial Dashboard 看板 |
|
YF.WL.Logger
日志 |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Sundial:
Repository | Stars |
---|---|
liuhll/silky
The Silky framework is designed to help developers quickly build a microservice development framework through simple code and configuration under the .net platform.
|
Version | Downloads | Last updated | |
---|---|---|---|
2.66.0 | 204 | 11/13/2024 | |
2.65.0 | 127 | 11/13/2024 | |
2.64.0 | 383 | 8/11/2024 | |
2.63.0 | 177 | 7/18/2024 | |
2.62.0 | 107 | 7/18/2024 | |
2.61.0 | 143 | 7/10/2024 | |
2.60.0 | 169 | 7/3/2024 | |
2.59.0 | 152 | 6/21/2024 | |
2.58.0 | 218 | 5/28/2024 | |
2.57.0 | 172 | 5/20/2024 | |
2.56.0 | 123 | 5/14/2024 | |
2.55.0 | 221 | 5/10/2024 | |
2.54.0 | 256 | 5/8/2024 | |
2.53.0 | 114 | 5/7/2024 | |
2.52.0 | 119 | 5/7/2024 | |
2.51.0 | 121 | 4/30/2024 | |
2.50.0 | 119 | 4/28/2024 | |
2.49.0 | 128 | 4/23/2024 | |
2.48.0 | 117 | 4/23/2024 | |
2.47.0 | 106 | 4/22/2024 | |
2.46.0 | 126 | 4/19/2024 | |
2.45.0 | 117 | 4/11/2024 | |
2.44.0 | 117 | 4/11/2024 | |
2.43.0 | 125 | 4/10/2024 | |
2.42.0 | 117 | 4/9/2024 | |
2.41.0 | 129 | 4/9/2024 | |
2.40.0 | 118 | 3/29/2024 | |
2.39.0 | 116 | 3/27/2024 | |
2.38.0 | 116 | 3/25/2024 | |
2.37.0 | 173 | 3/21/2024 | |
2.36.0 | 297 | 3/7/2024 | |
2.35.0 | 150 | 3/7/2024 | |
2.34.0 | 404 | 1/16/2024 | |
2.33.0 | 215 | 1/10/2024 | |
2.32.0 | 252 | 1/1/2024 | |
2.31.0 | 658 | 12/2/2023 | |
2.30.0 | 194 | 12/1/2023 | |
2.29.0 | 215 | 11/24/2023 | |
2.28.0 | 396 | 11/14/2023 | |
2.27.0 | 184 | 11/11/2023 | |
2.26.0 | 420 | 10/9/2023 | |
2.25.0 | 1,226 | 7/6/2023 | |
2.24.0 | 532 | 6/28/2023 | |
2.23.0 | 175 | 6/27/2023 | |
2.22.0 | 233 | 6/25/2023 | |
2.21.0 | 183 | 6/24/2023 | |
2.20.0 | 168 | 6/24/2023 | |
2.19.0 | 199 | 6/21/2023 | |
2.18.0 | 181 | 6/21/2023 | |
2.17.0 | 152 | 6/21/2023 | |
2.16.0 | 270 | 6/14/2023 | |
2.15.0 | 375 | 5/17/2023 | |
2.13.0 | 247 | 5/8/2023 | |
2.12.0 | 210 | 5/3/2023 | |
2.11.0 | 219 | 4/29/2023 | |
2.10.4 | 223 | 4/25/2023 | |
2.10.3 | 186 | 4/25/2023 | |
2.10.2 | 213 | 4/24/2023 | |
2.10.1 | 219 | 4/21/2023 | |
2.10.0 | 433 | 4/12/2023 | |
2.9.9 | 243 | 4/11/2023 | |
2.9.8 | 288 | 4/6/2023 | |
2.9.7 | 246 | 4/5/2023 | |
2.9.6 | 231 | 4/4/2023 | |
2.9.5 | 219 | 4/4/2023 | |
2.9.4 | 469 | 3/31/2023 | |
2.9.3 | 282 | 3/28/2023 | |
2.9.2 | 339 | 3/21/2023 | |
2.9.1 | 270 | 3/20/2023 | |
2.9.0 | 281 | 3/17/2023 | |
2.8.9 | 282 | 3/16/2023 | |
2.8.8 | 265 | 3/15/2023 | |
2.8.7 | 174 | 3/15/2023 | |
2.8.6 | 264 | 3/14/2023 | |
2.8.5 | 268 | 3/13/2023 | |
2.8.4 | 269 | 3/12/2023 | |
2.8.3 | 269 | 3/9/2023 | |
2.8.2 | 167 | 3/9/2023 | |
2.8.1 | 362 | 3/6/2023 | |
2.8.0 | 328 | 2/22/2023 | |
2.7.3 | 524 | 2/8/2023 | |
2.7.2 | 552 | 2/2/2023 | |
2.7.1 | 483 | 1/30/2023 | |
2.7.0 | 535 | 1/12/2023 | |
2.6.9 | 507 | 1/11/2023 | |
2.6.8 | 507 | 1/9/2023 | |
2.6.7 | 500 | 1/8/2023 | |
2.6.6 | 536 | 1/5/2023 | |
2.6.5 | 505 | 1/5/2023 | |
2.6.4 | 518 | 1/4/2023 | |
2.6.3 | 590 | 1/3/2023 | |
2.6.2 | 501 | 1/3/2023 | |
2.6.1 | 515 | 1/3/2023 | |
2.6.0 | 523 | 1/1/2023 | |
2.5.9 | 592 | 12/30/2022 | |
2.5.8 | 443 | 12/22/2022 | |
2.5.7 | 398 | 12/21/2022 | |
2.5.6 | 494 | 12/14/2022 | |
2.5.5 | 433 | 12/12/2022 | |
2.5.4 | 425 | 12/9/2022 | |
2.5.3 | 447 | 12/9/2022 | |
2.5.2 | 448 | 12/7/2022 | |
2.5.1 | 479 | 12/6/2022 | |
2.5.0 | 446 | 12/5/2022 | |
2.4.4 | 489 | 12/1/2022 | |
2.4.3 | 481 | 12/1/2022 | |
2.4.2 | 474 | 11/30/2022 | |
2.4.1 | 479 | 11/30/2022 | |
2.4.0 | 499 | 11/30/2022 | |
2.3.1 | 479 | 11/30/2022 | |
2.3.0 | 483 | 11/29/2022 | |
2.2.4 | 481 | 11/29/2022 | |
2.2.3 | 482 | 11/29/2022 | |
2.2.2 | 507 | 11/28/2022 | |
2.2.1 | 503 | 11/27/2022 | |
2.2.0 | 500 | 11/26/2022 | |
2.1.2 | 496 | 11/26/2022 | |
2.1.1 | 479 | 11/25/2022 | |
2.1.0 | 486 | 11/25/2022 | |
2.0.5 | 502 | 11/25/2022 | |
2.0.4 | 495 | 11/24/2022 | |
2.0.3 | 522 | 11/24/2022 | |
2.0.2 | 507 | 11/24/2022 | |
2.0.1 | 497 | 11/23/2022 | |
2.0.0 | 522 | 11/23/2022 | |
1.0.1 | 747 | 11/16/2021 | |
1.0.0 | 664 | 11/16/2021 | |
0.0.1 | 655 | 11/4/2021 |