Sundial 2.78.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Sundial --version 2.78.0
                    
NuGet\Install-Package Sundial -Version 2.78.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.78.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sundial" Version="2.78.0" />
                    
Directory.Packages.props
<PackageReference Include="Sundial" />
                    
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 Sundial --version 2.78.0
                    
#r "nuget: Sundial, 2.78.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.
#:package Sundial@2.78.0
                    
#: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=Sundial&version=2.78.0
                    
Install as a Cake Addin
#tool nuget:?package=Sundial&version=2.78.0
                    
Install as a Cake Tool

Sundial

license nuget dotNET China

.NET 功能齐全的开源分布式作业调度系统,可从最小的应用程序到大型企业系统使用。

Sundial.drawio

安装

dotnet add package Sundial

快速入门

我们在主页上有不少例子,这是让您入门的第一个:

  1. 定义作业,并实现 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;
    }
}
  1. Startup.cs 注册 AddSchedule 服务和作业:
services.AddSchedule(options =>
{
    options.AddJob<MyJob>(Triggers.PeriodSeconds(5)); // 5s 执行一次
});
  1. 运行项目:
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 开源许可证。

alternate text is missing from this package README image

Product 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.  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.  net10.0 was computed.  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 (2)

Showing the top 2 NuGet packages that depend on Sundial:

Package Downloads
Sundial.Dashboard

Sundial Dashboard 看板

YF.WL.Logger

日志

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Sundial:

Repository Stars
YSGStudyHards/DotNetExercises
⚔【DotNetGuide专栏C#/.NET/.NET Core编程技巧练习集】C#/.NET/.NET Core编程常用语法、算法、技巧、中间件、类库、工作业务实操练习集,配套详细的文章教程和代码示例,助力快速掌握C#/.NET/.NET Core中各种编程常用语法、算法、技巧、中间件、类库、工作业务实操等等。
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.200.0 296 11/12/2025
2.101.0 410 10/15/2025 2.101.0 is deprecated because it is no longer maintained and has critical bugs.
2.100.0 471 9/22/2025 2.100.0 is deprecated because it is no longer maintained and has critical bugs.
2.99.0 359 9/12/2025 2.99.0 is deprecated because it is no longer maintained and has critical bugs.
2.98.0 403 9/10/2025 2.98.0 is deprecated because it is no longer maintained and has critical bugs.
2.97.0 413 8/21/2025 2.97.0 is deprecated because it is no longer maintained and has critical bugs.
2.96.0 407 8/13/2025 2.96.0 is deprecated because it is no longer maintained and has critical bugs.
2.95.0 587 8/7/2025 2.95.0 is deprecated because it is no longer maintained and has critical bugs.
2.94.0 335 7/27/2025 2.94.0 is deprecated because it is no longer maintained and has critical bugs.
2.93.0 715 7/23/2025 2.93.0 is deprecated because it is no longer maintained and has critical bugs.
2.92.0 708 7/23/2025 2.92.0 is deprecated because it is no longer maintained and has critical bugs.
2.91.0 332 7/3/2025 2.91.0 is deprecated because it is no longer maintained and has critical bugs.
2.90.0 334 7/3/2025 2.90.0 is deprecated because it is no longer maintained and has critical bugs.
2.80.0 396 6/25/2025 2.80.0 is deprecated because it is no longer maintained and has critical bugs.
2.79.0 385 6/16/2025 2.79.0 is deprecated because it is no longer maintained and has critical bugs.
2.78.0 380 6/14/2025 2.78.0 is deprecated because it is no longer maintained and has critical bugs.
2.77.0 384 6/5/2025 2.77.0 is deprecated because it is no longer maintained and has critical bugs.
2.76.0 381 6/2/2025 2.76.0 is deprecated because it is no longer maintained and has critical bugs.
2.75.0 348 5/31/2025 2.75.0 is deprecated because it is no longer maintained and has critical bugs.
2.74.0 384 5/26/2025 2.74.0 is deprecated because it is no longer maintained and has critical bugs.
2.73.0 308 5/24/2025 2.73.0 is deprecated because it is no longer maintained and has critical bugs.
2.72.0 253 5/21/2025 2.72.0 is deprecated because it is no longer maintained and has critical bugs.
2.71.0 214 5/18/2025 2.71.0 is deprecated because it is no longer maintained and has critical bugs.
2.70.0 192 5/17/2025 2.70.0 is deprecated because it is no longer maintained and has critical bugs.
2.69.0 317 4/23/2025 2.69.0 is deprecated because it is no longer maintained and has critical bugs.
2.68.0 359 2/11/2025 2.68.0 is deprecated because it is no longer maintained and has critical bugs.
2.67.0 268 2/7/2025 2.67.0 is deprecated because it is no longer maintained and has critical bugs.
2.66.0 455 11/13/2024 2.66.0 is deprecated because it is no longer maintained and has critical bugs.
2.65.0 216 11/13/2024 2.65.0 is deprecated because it is no longer maintained and has critical bugs.
2.64.0 725 8/11/2024 2.64.0 is deprecated because it is no longer maintained and has critical bugs.
2.63.0 259 7/18/2024 2.63.0 is deprecated because it is no longer maintained and has critical bugs.
2.62.0 184 7/18/2024 2.62.0 is deprecated because it is no longer maintained and has critical bugs.
2.61.0 222 7/10/2024 2.61.0 is deprecated because it is no longer maintained and has critical bugs.
2.60.0 250 7/3/2024 2.60.0 is deprecated because it is no longer maintained and has critical bugs.
2.59.0 226 6/21/2024 2.59.0 is deprecated because it is no longer maintained and has critical bugs.
2.58.0 314 5/28/2024 2.58.0 is deprecated because it is no longer maintained and has critical bugs.
2.57.0 288 5/20/2024 2.57.0 is deprecated because it is no longer maintained and has critical bugs.
2.56.0 207 5/14/2024 2.56.0 is deprecated because it is no longer maintained and has critical bugs.
2.55.0 423 5/10/2024 2.55.0 is deprecated because it is no longer maintained and has critical bugs.
2.54.0 335 5/8/2024 2.54.0 is deprecated because it is no longer maintained and has critical bugs.
2.53.0 184 5/7/2024 2.53.0 is deprecated because it is no longer maintained and has critical bugs.
2.52.0 197 5/7/2024 2.52.0 is deprecated because it is no longer maintained and has critical bugs.
2.51.0 194 4/30/2024 2.51.0 is deprecated because it is no longer maintained and has critical bugs.
2.50.0 196 4/28/2024 2.50.0 is deprecated because it is no longer maintained and has critical bugs.
2.49.0 201 4/23/2024 2.49.0 is deprecated because it is no longer maintained and has critical bugs.
2.48.0 191 4/23/2024 2.48.0 is deprecated because it is no longer maintained and has critical bugs.
2.47.0 179 4/22/2024 2.47.0 is deprecated because it is no longer maintained and has critical bugs.
2.46.0 210 4/19/2024 2.46.0 is deprecated because it is no longer maintained and has critical bugs.
2.45.0 190 4/11/2024 2.45.0 is deprecated because it is no longer maintained and has critical bugs.
2.44.0 187 4/11/2024 2.44.0 is deprecated because it is no longer maintained and has critical bugs.
2.43.0 202 4/10/2024 2.43.0 is deprecated because it is no longer maintained and has critical bugs.
2.42.0 184 4/9/2024 2.42.0 is deprecated because it is no longer maintained and has critical bugs.
2.41.0 205 4/9/2024 2.41.0 is deprecated because it is no longer maintained and has critical bugs.
2.40.0 189 3/29/2024 2.40.0 is deprecated because it is no longer maintained and has critical bugs.
2.39.0 187 3/27/2024 2.39.0 is deprecated because it is no longer maintained and has critical bugs.
2.38.0 189 3/25/2024 2.38.0 is deprecated because it is no longer maintained and has critical bugs.
2.37.0 271 3/21/2024 2.37.0 is deprecated because it is no longer maintained and has critical bugs.
2.36.0 553 3/7/2024 2.36.0 is deprecated because it is no longer maintained and has critical bugs.
2.35.0 245 3/7/2024 2.35.0 is deprecated because it is no longer maintained and has critical bugs.
2.34.0 580 1/16/2024 2.34.0 is deprecated because it is no longer maintained and has critical bugs.
2.33.0 298 1/10/2024 2.33.0 is deprecated because it is no longer maintained and has critical bugs.
2.32.0 354 1/1/2024 2.32.0 is deprecated because it is no longer maintained and has critical bugs.
2.31.0 746 12/2/2023 2.31.0 is deprecated because it is no longer maintained and has critical bugs.
2.30.0 262 12/1/2023 2.30.0 is deprecated because it is no longer maintained and has critical bugs.
2.29.0 276 11/24/2023 2.29.0 is deprecated because it is no longer maintained and has critical bugs.
2.28.0 471 11/14/2023 2.28.0 is deprecated because it is no longer maintained and has critical bugs.
2.27.0 235 11/11/2023 2.27.0 is deprecated because it is no longer maintained and has critical bugs.
2.26.0 515 10/9/2023 2.26.0 is deprecated because it is no longer maintained and has critical bugs.
2.25.0 1,505 7/6/2023 2.25.0 is deprecated because it is no longer maintained and has critical bugs.
2.24.0 618 6/28/2023 2.24.0 is deprecated because it is no longer maintained and has critical bugs.
2.23.0 255 6/27/2023 2.23.0 is deprecated because it is no longer maintained and has critical bugs.
2.22.0 318 6/25/2023 2.22.0 is deprecated because it is no longer maintained and has critical bugs.
2.21.0 258 6/24/2023 2.21.0 is deprecated because it is no longer maintained and has critical bugs.
2.20.0 244 6/24/2023 2.20.0 is deprecated because it is no longer maintained and has critical bugs.
2.19.0 274 6/21/2023 2.19.0 is deprecated because it is no longer maintained and has critical bugs.
2.18.0 275 6/21/2023 2.18.0 is deprecated because it is no longer maintained and has critical bugs.
2.17.0 225 6/21/2023 2.17.0 is deprecated because it is no longer maintained and has critical bugs.
2.16.0 373 6/14/2023 2.16.0 is deprecated because it is no longer maintained and has critical bugs.
2.15.0 486 5/17/2023 2.15.0 is deprecated because it is no longer maintained and has critical bugs.
2.13.0 349 5/8/2023 2.13.0 is deprecated because it is no longer maintained and has critical bugs.
2.12.0 311 5/3/2023 2.12.0 is deprecated because it is no longer maintained and has critical bugs.
2.11.0 325 4/29/2023 2.11.0 is deprecated because it is no longer maintained and has critical bugs.
2.10.4 327 4/25/2023 2.10.4 is deprecated because it is no longer maintained and has critical bugs.
2.10.3 285 4/25/2023 2.10.3 is deprecated because it is no longer maintained and has critical bugs.
2.10.2 312 4/24/2023 2.10.2 is deprecated because it is no longer maintained and has critical bugs.
2.10.1 317 4/21/2023 2.10.1 is deprecated because it is no longer maintained and has critical bugs.
2.10.0 544 4/12/2023 2.10.0 is deprecated because it is no longer maintained and has critical bugs.
2.9.9 394 4/11/2023 2.9.9 is deprecated because it is no longer maintained and has critical bugs.
2.9.8 450 4/6/2023 2.9.8 is deprecated because it is no longer maintained and has critical bugs.
2.9.7 396 4/5/2023 2.9.7 is deprecated because it is no longer maintained and has critical bugs.
2.9.6 383 4/4/2023 2.9.6 is deprecated because it is no longer maintained and has critical bugs.
2.9.5 366 4/4/2023 2.9.5 is deprecated because it is no longer maintained and has critical bugs.
2.9.4 728 3/31/2023 2.9.4 is deprecated because it is no longer maintained and has critical bugs.
2.9.3 448 3/28/2023 2.9.3 is deprecated because it is no longer maintained and has critical bugs.
2.9.2 491 3/21/2023 2.9.2 is deprecated because it is no longer maintained and has critical bugs.
2.9.1 411 3/20/2023 2.9.1 is deprecated because it is no longer maintained and has critical bugs.
2.9.0 431 3/17/2023 2.9.0 is deprecated because it is no longer maintained and has critical bugs.
2.8.9 441 3/16/2023 2.8.9 is deprecated because it is no longer maintained and has critical bugs.
2.8.8 424 3/15/2023 2.8.8 is deprecated because it is no longer maintained and has critical bugs.
2.8.7 311 3/15/2023 2.8.7 is deprecated because it is no longer maintained and has critical bugs.
2.8.6 429 3/14/2023 2.8.6 is deprecated because it is no longer maintained and has critical bugs.
2.8.5 426 3/13/2023 2.8.5 is deprecated because it is no longer maintained and has critical bugs.
2.8.4 419 3/12/2023 2.8.4 is deprecated because it is no longer maintained and has critical bugs.
2.8.3 422 3/9/2023 2.8.3 is deprecated because it is no longer maintained and has critical bugs.
2.8.2 311 3/9/2023 2.8.2 is deprecated because it is no longer maintained and has critical bugs.
2.8.1 526 3/6/2023 2.8.1 is deprecated because it is no longer maintained and has critical bugs.
2.8.0 485 2/22/2023 2.8.0 is deprecated because it is no longer maintained and has critical bugs.
2.7.3 761 2/8/2023 2.7.3 is deprecated because it is no longer maintained and has critical bugs.
2.7.2 793 2/2/2023 2.7.2 is deprecated because it is no longer maintained and has critical bugs.
2.7.1 713 1/30/2023 2.7.1 is deprecated because it is no longer maintained and has critical bugs.
2.7.0 776 1/12/2023 2.7.0 is deprecated because it is no longer maintained and has critical bugs.
2.6.9 735 1/11/2023 2.6.9 is deprecated because it is no longer maintained and has critical bugs.
2.6.8 745 1/9/2023 2.6.8 is deprecated because it is no longer maintained and has critical bugs.
2.6.7 739 1/8/2023 2.6.7 is deprecated because it is no longer maintained and has critical bugs.
2.6.6 765 1/5/2023 2.6.6 is deprecated because it is no longer maintained and has critical bugs.
2.6.5 737 1/5/2023 2.6.5 is deprecated because it is no longer maintained and has critical bugs.
2.6.4 745 1/4/2023 2.6.4 is deprecated because it is no longer maintained and has critical bugs.
2.6.3 840 1/3/2023 2.6.3 is deprecated because it is no longer maintained and has critical bugs.
2.6.2 738 1/3/2023 2.6.2 is deprecated because it is no longer maintained and has critical bugs.
2.6.1 748 1/3/2023 2.6.1 is deprecated because it is no longer maintained and has critical bugs.
2.6.0 768 1/1/2023 2.6.0 is deprecated because it is no longer maintained and has critical bugs.
2.5.9 837 12/30/2022 2.5.9 is deprecated because it is no longer maintained and has critical bugs.
2.5.8 659 12/22/2022 2.5.8 is deprecated because it is no longer maintained and has critical bugs.
2.5.7 619 12/21/2022 2.5.7 is deprecated because it is no longer maintained and has critical bugs.
2.5.6 804 12/14/2022 2.5.6 is deprecated because it is no longer maintained and has critical bugs.
2.5.5 650 12/12/2022 2.5.5 is deprecated because it is no longer maintained and has critical bugs.
2.5.4 650 12/9/2022 2.5.4 is deprecated because it is no longer maintained and has critical bugs.
2.5.3 728 12/9/2022 2.5.3 is deprecated because it is no longer maintained and has critical bugs.
2.5.2 735 12/7/2022 2.5.2 is deprecated because it is no longer maintained and has critical bugs.
2.5.1 769 12/6/2022 2.5.1 is deprecated because it is no longer maintained and has critical bugs.
2.5.0 731 12/5/2022 2.5.0 is deprecated because it is no longer maintained and has critical bugs.
2.4.4 829 12/1/2022 2.4.4 is deprecated because it is no longer maintained and has critical bugs.
2.4.3 834 12/1/2022 2.4.3 is deprecated because it is no longer maintained and has critical bugs.
2.4.2 817 11/30/2022 2.4.2 is deprecated because it is no longer maintained and has critical bugs.
2.4.1 828 11/30/2022 2.4.1 is deprecated because it is no longer maintained and has critical bugs.
2.4.0 846 11/30/2022 2.4.0 is deprecated because it is no longer maintained and has critical bugs.
2.3.1 822 11/30/2022 2.3.1 is deprecated because it is no longer maintained and has critical bugs.
2.3.0 833 11/29/2022 2.3.0 is deprecated because it is no longer maintained and has critical bugs.
2.2.4 830 11/29/2022 2.2.4 is deprecated because it is no longer maintained and has critical bugs.
2.2.3 819 11/29/2022 2.2.3 is deprecated because it is no longer maintained and has critical bugs.
2.2.2 849 11/28/2022 2.2.2 is deprecated because it is no longer maintained and has critical bugs.
2.2.1 854 11/27/2022 2.2.1 is deprecated because it is no longer maintained and has critical bugs.
2.2.0 856 11/26/2022 2.2.0 is deprecated because it is no longer maintained and has critical bugs.
2.1.2 842 11/26/2022 2.1.2 is deprecated because it is no longer maintained and has critical bugs.
2.1.1 821 11/25/2022 2.1.1 is deprecated because it is no longer maintained and has critical bugs.
2.1.0 837 11/25/2022 2.1.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.5 847 11/25/2022 2.0.5 is deprecated because it is no longer maintained and has critical bugs.
2.0.4 849 11/24/2022 2.0.4 is deprecated because it is no longer maintained and has critical bugs.
2.0.3 875 11/24/2022 2.0.3 is deprecated because it is no longer maintained and has critical bugs.
2.0.2 858 11/24/2022 2.0.2 is deprecated because it is no longer maintained and has critical bugs.
2.0.1 846 11/23/2022 2.0.1 is deprecated because it is no longer maintained and has critical bugs.
2.0.0 880 11/23/2022 2.0.0 is deprecated because it is no longer maintained and has critical bugs.
1.0.1 1,129 11/16/2021 1.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0 1,039 11/16/2021 1.0.0 is deprecated because it is no longer maintained and has critical bugs.
0.0.1 1,039 11/4/2021 0.0.1 is deprecated because it is no longer maintained and has critical bugs.