SuperAPI AI 工具集

schedules

通用与其它

查看项目

更新于 10-16 07:18

技能介绍

用途:Windmill Schedules 用于按 cron 计划自动运行脚本和流程(flow)。

文件命名:调度文件采用 {path}.schedule.yaml 模式,例如 f/folder/daily_sync.schedule.yaml。路径由文件名推导,不存储在文件内容中。

Cron 格式:使用 6 段表达式(含秒),依次为秒(0-59)、分(0-59)、时(0-23)、日(1-31)、月(1-12 或 jan-dec)、星期(0-6,0=周日,或 sun-sat)。示例:0 0 0 * * * 每天午夜;0 0 12 * * * 每天中午;0 */5 * * * * 每 5 分钟;0 0 9 * * 1-5 工作日 9 点;0 0 0 1 * * 每月第一天。

主要配置字段:schedule(cron)、timezone(IANA 时区)、enabled、script_path、is_flow、args;失败处理 on_failure、on_failure_times、on_failure_exact、on_failure_extra_args;恢复处理 on_recovery、on_recovery_times、on_recovery_extra_args;成功回调 on_success、on_success_extra_args;retry(constant 或 exponential,含 attempts、seconds、multiplier、random_factor 及 retry_if);no_flow_overlap 防并发;tag 指定 worker;paused_until 暂停至指定时间;cron_version 设为 v2 启用扩展语法;dynamic_skip 指向校验脚本,接收 scheduled_for 返回布尔决定跳过;labels、draft_only、is_draft、inherited_labels 等。必填:schedule、script_path、timezone、is_flow、enabled。

CLI 用法:wmill schedule 列出调度;wmill sync pull 从 Windmill 拉取(会覆盖本地文件,可用 --dry-run 预览);wmill sync push 推送本地变更。注意:部署会改动远端状态,仅在用户明确要求部署/发布/推送时执行,用户说“运行/试试/测试”时不要部署。

限制:资料未提供收费、价格、平台支持范围等信息。