Sundial.Dashboard 2.6.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Sundial.Dashboard --version 2.6.2
NuGet\Install-Package Sundial.Dashboard -Version 2.6.2
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.Dashboard" Version="2.6.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sundial.Dashboard --version 2.6.2
#r "nuget: Sundial.Dashboard, 2.6.2"
#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.Dashboard as a Cake Addin
#addin nuget:?package=Sundial.Dashboard&version=2.6.2

// Install Sundial.Dashboard as a Cake Tool
#tool nuget:?package=Sundial.Dashboard&version=2.6.2

Sundial

license nuget dotNET China

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

Sundial.drawio

特性

  • 简化调度作业
    • 支持作业监视器
    • 支持作业执行器
    • 支持自定义作业存储组件(持久化)
    • 支持自定义策略执行
    • 内置周期、Cron 作业
    • 支持自定义作业触发器
    • 支持依赖注入控制(含 HTTP 控制支持)
  • 高内聚,低耦合,使代码更简单
  • 很小,仅 41KB
  • 无第三方依赖
  • 可在 Windows/Linux/MacOS 守护进程部署
  • 支持分布式、集群(多实例)部署
  • 支持负载均衡(基于 TCP/IP)
  • 高质量代码和良好单元测试
  • 跨平台,支持 .NET5+

安装

Install-Package Sundial
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}");
        return Task.CompletedTask;
    }
}
  1. Startup.cs 注册 AddSchedule 服务和作业:
services.AddSchedule(options =>
{
    options.AddJob<MyJob>(Triggers.PeriodSeconds(5));
});
  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 开源许可证。

MIT License

Copyright (c) 2020-2022 百小僧, Baiqian Co.,Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Sundial.Dashboard:

Package Downloads
YF.WL.Logger

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.57.0 76 5/20/2024
2.56.0 64 5/14/2024
2.55.0 74 5/10/2024
2.54.0 168 5/8/2024
2.53.0 101 5/7/2024
2.52.0 101 5/7/2024
2.51.0 107 4/30/2024
2.50.0 95 4/28/2024
2.49.0 95 4/23/2024
2.48.0 91 4/23/2024
2.47.0 85 4/22/2024
2.46.0 87 4/19/2024
2.45.0 88 4/11/2024
2.44.0 85 4/11/2024
2.43.0 86 4/10/2024
2.42.0 85 4/9/2024
2.41.0 79 4/9/2024
2.40.0 92 3/29/2024
2.39.0 95 3/27/2024
2.38.0 93 3/25/2024
2.37.0 119 3/21/2024
2.36.0 148 3/7/2024
2.35.0 92 3/7/2024
2.34.0 222 1/16/2024
2.33.0 136 1/10/2024
2.32.0 160 1/1/2024
2.31.0 279 12/2/2023
2.30.0 134 12/1/2023
2.29.0 126 11/24/2023
2.28.0 274 11/14/2023
2.27.0 133 11/11/2023
2.26.0 263 10/9/2023
2.25.0 410 7/6/2023
2.24.0 277 6/28/2023
2.23.0 142 6/27/2023
2.22.0 177 6/25/2023
2.21.0 148 6/24/2023
2.20.0 151 6/24/2023
2.19.0 148 6/21/2023
2.18.0 147 6/21/2023
2.16.0 164 6/14/2023
2.15.0 199 5/17/2023
2.13.0 158 5/8/2023
2.12.0 160 5/3/2023
2.11.0 191 4/29/2023
2.10.4 186 4/25/2023
2.10.3 166 4/25/2023
2.10.2 184 4/24/2023
2.10.1 176 4/21/2023
2.10.0 274 4/12/2023
2.9.9 226 4/11/2023
2.9.8 272 4/6/2023
2.9.7 250 4/5/2023
2.9.6 249 4/4/2023
2.9.5 217 4/4/2023
2.9.4 227 3/31/2023
2.9.3 261 3/28/2023
2.9.2 269 3/21/2023
2.9.1 278 3/20/2023
2.9.0 259 3/17/2023
2.8.9 261 3/16/2023
2.8.8 270 3/15/2023
2.8.6 251 3/14/2023
2.8.5 267 3/13/2023
2.8.4 252 3/12/2023
2.8.3 252 3/9/2023
2.8.2 268 3/9/2023
2.8.1 265 3/6/2023
2.8.0 265 2/22/2023
2.7.3 314 2/8/2023
2.7.2 367 2/2/2023
2.7.1 332 1/30/2023
2.7.0 382 1/12/2023
2.6.9 337 1/11/2023
2.6.8 323 1/9/2023
2.6.7 317 1/8/2023
2.6.6 364 1/5/2023
2.6.5 340 1/5/2023
2.6.4 340 1/4/2023
2.6.3 327 1/3/2023
2.6.2 331 1/3/2023
2.6.1 350 1/3/2023
2.6.0 326 1/1/2023
2.5.9 373 12/30/2022