RepositoryGo
GO

gocronx-team/gocron

distributed scheduled task management system

787stars
65forks
1issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: gocron

#1 Repository of the week

1
TINIX TRENDING·Topic: goland

#1 Repository of the week

2
TINIX TRENDING·Topic: crontab

#2 Repository of the week

gocron - Distributed scheduled Task Scheduler

Release Downloads License

English | 简体中文

A lightweight distributed scheduled task management system developed in Go, designed to replace Linux-crontab.

📖 Documentation

Full documentation is available at: document

✨ Features

  • Web Interface: Intuitive task management interface
  • Second-level Precision: Supports Crontab expressions with second precision
  • High Availability: Database-lock-based leader election, automatic failover in seconds
  • Task Retry: Configurable retry policies for failed tasks
  • Task Dependency: Supports task dependency configuration
  • Access Control: Comprehensive user and permission management
  • 2FA Security: Two-Factor Authentication support
  • Agent Auto-Registration: One-click installation for Linux/macOS
  • MCP Support: Remote management by AI clients (Claude Desktop, Cursor, etc.) via the Model Context Protocol, secured with web-managed access tokens
  • AI Assist: Natural-language to cron expression, AI-powered failure-log diagnosis, and an in-app AI ops chat assistant (query tasks/logs/hosts/templates, diagnose failures), backed by any OpenAI-compatible model (configurable endpoint, also works with self-hosted/local models)
  • Multi-Database: MySQL / PostgreSQL / SQLite support
  • Log Management: Complete execution logs with auto-cleanup
  • Notifications: Email, Slack, Webhook support

🚀 Quick Start

The fastest way to try gocron is Docker Compose (builds the image from source locally):

# 1. Clone the project
git clone https://github.com/gocronx-team/gocron.git
cd gocron

# 2. Start services
docker compose up -d

# 3. Access Web Interface
# http://localhost:5920

For production, binary deployment is recommended. See the Installation Guide for all methods (Binary, Docker, Kubernetes, Development).

🔷 High Availability (Optional)

Deploy multiple gocron instances pointing to the same MySQL/PostgreSQL database. Leader election is automatic — no extra configuration needed. SQLite runs in single-node mode.

# Node 1
./gocron web --port 5920

# Node 2 (same database)
./gocron web --port 5921

See the High Availability Guide for setup details, K8s deployment, and environment variable overrides.

📸 Screenshots

Scheduled Tasks
Scheduled Tasks

Agent Auto-RegistrationTask Management
Agent Auto-RegistrationTask Management

AI Failure Diagnosis
AI Failure Diagnosis

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md for the full guide.

One thing to note: commit messages are validated by a git hook (commitlint), so use the interactive commit tool instead of git commit:

pnpm install      # first-time setup (installs git hooks)
pnpm run commit   # create a properly formatted commit

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Star History

Star History Chart

Similar Projects

Discover other similar projects and AI models.

RepositoryHTML
agenda/agenda

Lightweight job scheduling for Node.js

9.7k
Nov 13, 2026
RepositoryGo
go-co-op/gocron

Easy and fluent Go cron scheduling. This is a fork from https://github.com/jasonlvhit/gocron

7.2k
Nov 25, 2026
RepositoryGo
ouqiang/gocron

定时任务管理系统

6.3k
Mar 27, 2024
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
RepositoryJava
xuxueli/xxl-job

A distributed task scheduling framework.(分布式任务调度平台XXL-JOB)

30.7k
Oct 9, 2026
RepositoryJava
PowerJob/PowerJob

Enterprise job scheduling middleware with distributed computing ability.

7.8k
Oct 1, 2026
RepositoryJavaScript
jhuckaby/Cronicle

A simple, distributed task scheduler and runner with a web based UI.

5.9k
Nov 16, 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
RepositoryElixir
quantum-elixir/quantum-core

:watch: Cron-like job scheduler for Elixir

2.4k
Nov 25, 2026