RepositoryShell
kdcllc

kdcllc/CronScheduler.AspNetCore

A powerful Cron Jobs Scheduler for ASP.NET Core and .NET Core (2.x-8.x). Simplify the management of self-hosted and ASP.NET Core-based scheduled tasks with a flexible and reliable solution. Designed for developers needing robust task scheduling in modern frameworks.

188sao
25fork
1issue
0lượt xem

⏱️ CronScheduler.AspNetCore — Lên lịch Cron Nhẹ, Dễ Dùng cho .NET Core

Một giải pháp đơn giản hóa lên lịch tác vụ bằng cú pháp cron trong môi trường ASP.NET Core và .NET Core.

CronScheduler.AspNetCore là một thư viện nhẹ và dễ sử dụng giúp bạn lên lịch các tác vụ định kỳ bằng cú pháp cron, hoạt động trực tiếp trên nền tảng .NET Core GenericHost IHost hoặc IWebHost. Dựa trên thư viện HangfireIO/Cronos, nó hỗ trợ độ chính xác lên đến 5 giây và được thiết kế theo nguyên tắc KISS — một lựa chọn thông minh thay thế cho Quartz Scheduler phức tạp.

✨ Điểm nổi bật

  • Lên lịch bằng cú pháp cron: Sử dụng chuẩn Crontab format với hỗ trợ trường giây tùy chọn.
  • Hỗ trợ .NET Core 2.x đến 8.x: Tương thích rộng rãi với các phiên bản .NET Core hiện nay.
  • Tích hợp với IHost/IWebHost: Dễ dàng thêm vào ứng dụng ASP.NET Core hoặc worker service.
  • IStartupJob: Hỗ trợ khởi chạy bất đồng bộ các quy trình quan trọng trước khi host sẵn sàng.
  • Đăng ký linh hoạt: Có thể cấu hình qua IConfiguration hoặc đăng ký thủ công với tùy chọn riêng.
  • Hỗ trợ chạy ngay lập tức: Cấu hình RunImmediately để thực thi job ngay khi khởi động.
  • NuGet & Feedz.IO: Cài đặt dễ dàng qua NuGet hoặc các gói pre-release qua Feedz.IO.

💡 Vì sao đáng chú ý

Không giống như Quartz Scheduler nặng nề, CronScheduler.AspNetCore tập trung vào sự đơn giản và hiệu suất. Nó phù hợp cho các ứng dụng hiện đại cần lên lịch tác vụ nhưng không muốn thêm phụ thuộc phức tạp. Đặc biệt hữu ích trong môi trường Kubernetes nhờ hỗ trợ IStartupJob để khởi tạo các dịch vụ phụ thuộc một cách bất đồng bộ trước khi ứng dụng chạnh thực sự sẵn sàng.


#CronScheduler #AspNetCore #DotNet #CronJob #Scheduler #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC#
quartznet/quartznet

Quartz Enterprise Scheduler .NET

7.1k
Nov 26, 2026
RepositoryHTML
agenda/agenda

Lightweight job scheduling for Node.js

9.7k
Nov 13, 2026
RepositoryTypeScript
node-cron/node-cron

Job scheduling for Node.js with overlap prevention, distributed coordination, and background tasks. Zero dependencies.

3.3k
Nov 7, 2026
RepositoryJava
jobrunr/jobrunr

An extremely easy way to perform background processing in Java. Backed by persistent storage. Open and free for commercial use.

3.1k
Nov 27, 2026
RepositoryTypeScript
Hexagon/croner

Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.

2.6k
Nov 26, 2026
RepositoryRuby
sidekiq-cron/sidekiq-cron

Scheduler / Cron for Sidekiq jobs

1.9k
Nov 6, 2026
RepositoryPHP
always-open/laravel-totem

Manage Your Laravel Schedule From A Web Dashboard

1.8k
Nov 6, 2026
RepositoryTypeScript
harrisiirak/cron-parser

Typescript library for parsing crontab instructions

1.5k
Nov 30, 2026
RepositoryGo
engigu/baihu-panel

🐯轻量级定时任务管理系统,支持 Python, Node.js, Go, Rust, PHP 等所有主流语言的动态安装与多版本切换,,Docker/Compose 即用。A lightweight, high-performance cron panel built with Go & Vue 3.

763
Nov 27, 2026