Sundial 2.245.0
dotnet add package Sundial --version 2.245.0
NuGet\Install-Package Sundial -Version 2.245.0
<PackageReference Include="Sundial" Version="2.245.0" />
<PackageVersion Include="Sundial" Version="2.245.0" />
<PackageReference Include="Sundial" />
paket add Sundial --version 2.245.0
#r "nuget: Sundial, 2.245.0"
#:package Sundial@2.245.0
#addin nuget:?package=Sundial&version=2.245.0
#tool nuget:?package=Sundial&version=2.245.0
Sundial
A fully-featured open-source distributed job scheduling system for .NET, suitable for applications of all sizes – from small apps to large enterprise systems.
Installation
dotnet add package Sundial
Quick Start
We have many examples on our homepage. Here’s one to get you started:
- Define a job by implementing the
IJobinterface:
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;
}
}
- Register the
AddScheduleservice and the job inStartup.cs:
services.AddSchedule(options =>
{
options.AddJob<MyJob>(Triggers.PeriodSeconds(5)); // Execute every 5 seconds
});
- 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]
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.
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- TimeCrontab (>= 3.9.3)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- TimeCrontab (>= 3.9.3)
-
net9.0
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- TimeCrontab (>= 3.9.3)
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.242.0 | 133 | 6/18/2026 | |
| 2.241.0 | 143 | 6/18/2026 | |
| 2.240.0 | 145 | 6/9/2026 | |
| 2.239.0 | 135 | 6/5/2026 | |
| 2.238.0 | 142 | 6/4/2026 | |
| 2.237.0 | 151 | 5/26/2026 | |
| 2.236.0 | 142 | 5/22/2026 | |
| 2.235.0 | 153 | 5/21/2026 | |
| 2.234.0 | 134 | 5/19/2026 | |
| 2.233.0 | 141 | 5/19/2026 | |
| 2.232.0 | 134 | 5/19/2026 | |
| 2.231.0 | 138 | 5/18/2026 | |
| 2.230.0 | 137 | 5/18/2026 | |
| 2.228.0 | 97 | 5/17/2026 | |
| 2.227.0 | 91 | 5/16/2026 | |
| 2.226.0 | 99 | 5/16/2026 | |
| 2.225.0 | 97 | 5/15/2026 |