# cron-go **Repository Path**: meta-liam/cron-go ## Basic Information - **Project Name**: cron-go - **Description**: 调度系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-17 - **Last Updated**: 2022-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Cron - 定时任务管理系统 ## 项目简介 使用Go语言开发的轻量级定时任务集中调度和管理系统, 用于替代Linux-crontab。 设计文档在 docs文件夹。 ## Crontab时间表达式 Linux-crontab时间表达式语法, 支持秒级任务定义 格式: 秒 分 时 天 月 周 示例: 1 * * * * * 每分钟第一秒运行 */20 * * * * * 每隔20秒运行一次 0 30 21 * * * 每天晚上21:30:00运行一次 0 0 23 * * 6 每周六晚上23:00:00 运行一次 快捷语法: @yearly 每年运行一次 @monthly 每月运行一次 @weekly 每周运行一次 @daily 每天运行一次 @midnight 每天午夜运行一次 @hourly 每小时运行一次 @every 30s 每隔30秒运行一次 @every 1m20s 每隔1分钟20秒运行一次 @every 3h5m10s 每隔3小时5分钟10秒运行一次 ## 快速开始 ```shell 开发 go mod tidy cd cmd/cron go run main.go ``` ```shell 使用 make build-mac cd ./build/cron ./cron_mac ``` ## 开发环境 MacOs 12.0.1 系统, go 1.16, Mysql 数据库 cron-dev