Migrate Cron Jobs to a Scheduler
Added 2026-10
Migrate Cron Jobs to a Scheduler — Chinese original prompt
需要把散落在 [机器数量] 台上的 crontab 任务迁到统一调度平台。请先盘点每个任务的执行周期、依赖、耗时、失败影响和负责人,再排迁移顺序。输出:任务清单表、迁移批次与理由、迁移期间防止重复执行的措施、以及每个任务的失败告警接收人。
Site original
Chinese original
Example
Sample input
散在二十台机器上的定时任务要迁到统一调度平台,先盘点再排迁移顺序。
The output should include
- 清单含周期、依赖、耗时与负责人
- 给出迁移批次划分与排序理由
- 迁移期间防重复执行的措施
Replace these placeholders 1
Swap the bracketed parts for your own details before sending.
[机器数量]
How to use
先迁那些失败了也没人知道的旁路任务,风险最低又能立刻见效。
Try tweaking it
- Have it restate requirements and constraints before writing code.
- Ask for the smallest change plus a rollback path, not a full-file rewrite.
What you should get
- A minimal, runnable change with copy-ready code
- Impact list: which files and call sites must follow
Common mistakes
- Asking it to touch ten files at once, then losing track of what broke what.
- Pasting only the error, with no code or version, and getting an unfixable answer.
How to check the output
- The change runs, can be rolled back, and touches nothing unrelated.
- Edge cases (empty, oversized, concurrent) are covered or explained.
Where it works
- Good for: having it restate requirements and constraints, then propose the smallest runnable change.
- Watch out: include versions and a minimal reproduction with the error, or the fix may look plausible but not fit.