连续定时任务测试仓库
|
Some checks failed
on-push-smoke / smoke (push) Failing after 2m45s
Add a schedule workflow every 2 minutes with chained jobs, plus a push smoke workflow to verify the runner immediately. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .gitea/workflows | ||
| app | ||
| README.md | ||
cron-demo
用 Gitea Actions 测试连续定时任务的示例仓库。
内容
app/task.py:模拟业务任务,每次运行写入一条记录.gitea/workflows/cron.yml:每 2 分钟定时触发,3 个 job 串联.gitea/workflows/on-push.yml:推送时触发,方便立刻验证 runner
本地验证
python3 app/task.py