← 返回
开发者工具 中文

Windmill

Build automation workflows and internal tools with Windmill's code-first platform.
使用 Windmill 的代码优先平台构建自动化工作流和内部工具
ivangdavila
开发者工具 clawhub v1.0.0 1 版本 99797.3 Key: 无需
★ 2
Stars
📥 1,437
下载
💾 15
安装
1
版本
#latest

概述

Script Traps

  • Main function signature determines input schema — Windmill infers from type hints, wrong types break the UI form
  • Return value is the script output — forgetting to return means downstream steps get nothing
  • Python dependencies go in inline requirements.txt comment — not a global file, each script is isolated
  • TypeScript runs on Bun — Node.js-specific APIs may not work

Flow Execution

  • results.step_name fails if step hasn't run yet — conditional branches cause undefined access errors
  • Parallel branches need explicit configuration — default is sequential, not concurrent
  • Suspend steps wait forever without timeout — set explicit timeout or flow hangs indefinitely
  • Error handlers only catch step failures — script syntax errors bypass handlers

Scheduling Pitfalls

  • Timezone defaults to server timezone — set explicitly or jobs fire at unexpected times
  • Concurrent execution allowed by default — add mutex lock if jobs shouldn't overlap
  • Schedules attach to scripts/flows — no standalone schedule entities, delete script = delete schedule

Secrets and Variables

  • Secrets cannot be read back from UI after creation — store originals securely elsewhere
  • Variables are plaintext and visible — never put sensitive data in variables, only secrets
  • Path format matters — u/username/secret for user, f/folder/secret for shared

Self-Hosting

  • PostgreSQL is the only state — workers are stateless, back up only the database
  • Single container includes workers — fine for small loads, separate workers for scale
  • Worker count determines parallelism — one worker = one concurrent script execution

Webhook Triggers

  • Each script/flow gets unique webhook URL — changes if you rename the script
  • Webhook payload becomes script input — schema must match expected arguments
  • No built-in auth on webhooks — validate tokens in script logic or use reverse proxy

Common Mistakes

  • Testing flows without testing scripts first — debug scripts individually
  • Expecting state between runs — use variables or external storage for persistence
  • Hardcoding paths — use wmill.get_resource() for portability between workspaces

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 22:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,188
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,801
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,172