Sundial 2.245.0

dotnet add package Sundial --version 2.245.0
                    
NuGet\Install-Package Sundial -Version 2.245.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.245.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sundial" Version="2.245.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.245.0
                    
#r "nuget: Sundial, 2.245.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.245.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.245.0
                    
Install as a Cake Addin
#tool nuget:?package=Sundial&version=2.245.0
                    
Install as a Cake Tool

Sundial

license nuget dotNET China

A fully-featured open-source distributed job scheduling system for .NET, suitable for applications of all sizes – from small apps to large enterprise systems.

Sundial.drawio

Installation

dotnet add package Sundial

Quick Start

We have many examples on our homepage. Here’s one to get you started:

  1. Define a job by implementing the IJob interface:
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. Register the AddSchedule service and the job in Startup.cs:
services.AddSchedule(options =>
{
    options.AddJob<MyJob>(Triggers.PeriodSeconds(5)); // Execute every 5 seconds
});
  1. Run the project:
info: 2022-12-05 19:32:56.3835407 +08:00 Monday L System.Logging.ScheduleService[0] #1
      Schedule hosted service is running.
info: 2022-12-05 19:32:56.3913451 +08:00 Monday L System.Logging.ScheduleService[0] #1
      Schedule hosted service is preloading...
info: 2022-12-05 19:32:56.4322887 +08:00 Monday 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 Monday 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 Monday 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 Monday 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 Monday 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 Monday 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 overrides the ToString() method and provides the following output formats:

# Running format
<jobId> job description [C: Concurrent / S: Serial] <jobId triggerId> trigger string trigger description fireCount ts fireTime -> nextFireTime

# Stopped/terminated format
<jobId> job description [C: Concurrent / S: Serial] <jobId triggerId> trigger string trigger description fireCount ts fireTime [trigger termination status]

More documentation

Documentation

You can find the Sundial documentation on the homepage.

Contribution

The primary purpose of this repository is to continue evolving the Sundial core, making it faster and easier to use. Development of Sundial takes place openly on Gitee. We greatly appreciate community contributions for bug fixes and improvements.

License

Sundial is licensed under the MIT license.

alternate text is missing from this package README image

Product Compatible and additional computed target framework versions.
.NET 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 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 (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.245.0 31 7/3/2026
2.244.0 148 6/23/2026
2.243.0 129 6/23/2026 2.243.0 is deprecated because it is no longer maintained and has critical bugs.
2.242.0 133 6/18/2026 2.242.0 is deprecated because it is no longer maintained and has critical bugs.
2.241.0 143 6/18/2026 2.241.0 is deprecated because it is no longer maintained and has critical bugs.
2.240.0 145 6/9/2026 2.240.0 is deprecated because it is no longer maintained and has critical bugs.
2.239.0 135 6/5/2026 2.239.0 is deprecated because it is no longer maintained and has critical bugs.
2.238.0 142 6/4/2026 2.238.0 is deprecated because it is no longer maintained and has critical bugs.
2.237.0 151 5/26/2026 2.237.0 is deprecated because it is no longer maintained and has critical bugs.
2.236.0 142 5/22/2026 2.236.0 is deprecated because it is no longer maintained and has critical bugs.
2.235.0 153 5/21/2026 2.235.0 is deprecated because it is no longer maintained and has critical bugs.
2.234.0 134 5/19/2026 2.234.0 is deprecated because it is no longer maintained and has critical bugs.
2.233.0 141 5/19/2026 2.233.0 is deprecated because it is no longer maintained and has critical bugs.
2.232.0 134 5/19/2026 2.232.0 is deprecated because it is no longer maintained and has critical bugs.
2.231.0 138 5/18/2026 2.231.0 is deprecated because it is no longer maintained and has critical bugs.
2.230.0 137 5/18/2026 2.230.0 is deprecated because it is no longer maintained and has critical bugs.
2.228.0 97 5/17/2026 2.228.0 is deprecated because it is no longer maintained and has critical bugs.
2.227.0 91 5/16/2026 2.227.0 is deprecated because it is no longer maintained and has critical bugs.
2.226.0 99 5/16/2026 2.226.0 is deprecated because it is no longer maintained and has critical bugs.
2.225.0 97 5/15/2026 2.225.0 is deprecated because it is no longer maintained and has critical bugs.
Loading failed