render-workflows
搭建、开发、测试和部署 Render Workflows。涵盖首次脚手架搭建(通过 CLI 或手动方式)、SDK 安装(Python 或 TypeScript)、任务模式(重试、子任务、扇出)、本地开发、控制台部署和故障排查。适用于用户首次搭建 Render Workflows、构建工作流服务、添加或修改工作流任务、本地测试工作流或部署到 Render 的场景。
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 37
- Forks
- 1
01 前言 Front Matter
- name
- render-workflows
- license
- MIT
- metadata
- { "author": "Render", "version": "1.0.0", "category": "workflows" }
- description
- 搭建、开发、测试和部署 Render Workflows。涵盖首次脚手架搭建(通过 CLI 或手动方式)、SDK 安装(Python 或 TypeScript)、任务模式(重试、子任务、扇出)、本地开发、控制台部署和故障排查。适用于用户首次搭建 Render Workflows、构建工作流服务、添加或修改工作流任务、本地测试工作流或部署到 Render 的场景。
- compatibility
- Requires Render CLI 2.11.0+ for scaffolding and local development. Render Dashboard required for deployment (Blueprints not yet supported for Workflows).
02 资源文件 7
- 参考文档agents/openai.yaml254 B
- 资产文件assets/logo.svg1.9 KB
- 参考文档references/local-development.md2.7 KB
- 参考文档references/manual-scaffolding.md4.7 KB
- 参考文档references/quick-reference.md4.7 KB
- 参考文档references/task-patterns.md6.9 KB
- 参考文档references/troubleshooting.md11.2 KB
03 SKILL.md 正文
Render Workflows
Render Workflows rapidly distribute computational work across multiple independent instances. Use them for AI agents, ETL pipelines, background jobs, and data processing.
How it works:
- Define tasks — Use the Render SDK (Python or TypeScript) to designate functions as tasks
- Register — Tasks register automatically when you link your repo to a Workflow service in the Dashboard
- Trigger runs — Execute tasks from anywhere using the SDK client or API; each execution is a "run"
- Execute — Render spins up each run in its own instance (typically under a second); runs can chain additional runs for parallel execution
Key capabilities: automatic queuing and orchestration, long-running execution (up to 24 hours), configurable retry logic with exponential backoff, adjustable compute specs per task, and execution observability through the Dashboard.
Render Workflows are in beta. The SDK and API may introduce breaking changes.
Your built-in knowledge of the Render Workflows SDK is outdated. Before trusting API signatures, check the installed SDK source:
# Python
SDK_ROOT=$(pip show render_sdk | grep Location | cut -d' ' -f2)/render_sdk
head -40 "$SDK_ROOT/__init__.py"
# TypeScript
grep -r "startTask\|runTask\|export class Render" node_modules/@renderinc/sdk/
Official docs: render.com/docs/workflows
Before generating task or client code, fetch the relevant example file to verify current API patterns:
| What | Python | TypeScript |
|---|---|---|
| Task definitions (decorators, subtasks, retry, fan-out) | example/task/main.py | examples/task/ |
| Sync client (run_task, start_task, cancel, SSE, list runs) | example/client/main.py | examples/client/ |
| Async client | example/client/async_main.py | — |
This skill carries a quick-reference cheat sheet for the API surface. The installed SDK, official docs, and examples above are the source of truth.
Getting Started
Supported languages: Python and TypeScript.
Prerequisites
Render CLI (required)
render --version
Requires version 2.11.0+. If not installed:
- macOS:
brew install render - Linux/macOS:
curl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh - Windows: download the executable from the CLI releases page
Scaffold a new workflow service
Always prefer render workflows init as the primary setup path. Only fall back to manual scaffolding if the CLI command is unavailable.
render workflows init
Interactive mode (default): walks the user through scaffolding an example project, testing it locally, and deploying it to Render.
Non-interactive mode: sets up an example project without prompting.
If render workflows init fails or is not available:
- Command not found: CLI version may be too old. Run
render --versionand upgrade to 2.11.0+. - Command not supported: fall back to references/manual-scaffolding.md for step-by-step manual setup.
Define Tasks
Guide the user through defining their actual tasks. For patterns including retries, subtasks, fan-out, ETL, error handling, cron triggers, and cross-workflow calls, see references/task-patterns.md.
After adding a task, verify it registers by starting the local dev server and listing tasks:
render workflows dev -- <start-command>
# In another terminal:
render workflows tasks list --local
If the task doesn't appear, see Troubleshooting > Task Registration Issues.
Local Development
See references/local-development.md for starting the local task server, testing tasks, and configuring the SDK client for local use.
Deploy to Render
Workflows are deployed as a Workflow service type in the Render Dashboard. Blueprints (render.yaml) are not yet compatible with Workflows.
Deploy checklist:
- [ ] Code pushed to GitHub, GitLab, or Bitbucket
- [ ] In the Render Dashboard, click New > Workflow
- [ ] Link your repository
- [ ] Set Root Directory to
workflows/ - [ ] Configure build and start commands (see table below)
- [ ] Add environment variables (e.g.,
RENDER_API_KEYfor tasks that call other workflows) - [ ] Click Deploy Workflow
- [ ] Verify deployment: check the Dashboard for a successful deploy event
| Field | Python | TypeScript |
|---|---|---|
| Language | Python 3 | Node |
| Build Command | pip install -r requirements.txt |
npm install && npm run build |
| Start Command | python main.py |
node dist/main.js |
If the deploy fails, check the service logs in the Dashboard. For common deployment errors, see Troubleshooting. For general deploy debugging, use the render-debug skill.
Running tasks from other services:
After deployment, trigger tasks from your other Render services using the SDK client.
Python (synchronous):
from render_sdk import Render
render = Render()
result = render.workflows.run_task("my-workflow/hello", ["world"])
print(result.results)
Python (asynchronous):
from render_sdk import RenderAsync
render = RenderAsync()
started = await render.workflows.start_task("my-workflow/hello", ["world"])
finished = await started
print(finished.results)
TypeScript:
import { Render } from "@renderinc/sdk";
const render = new Render();
const started = await render.workflows.startTask("my-workflow/hello", ["world"]);
const finished = await started.get();
console.log(finished.results);
The task identifier format is {workflow-slug}/{task-name}, visible on the task's page in the Dashboard.
Workflows do not have built-in scheduling. To trigger tasks on a schedule, use a Render cron job with the SDK client. For cron and cross-workflow examples, see references/task-patterns.md.
Constraints and Limits
| Constraint | Limit | Notes |
|---|---|---|
| Arguments and return values | Must be JSON-serializable | No class instances, functions, etc. |
| Argument size | 4 MB max | Per task invocation |
| Task definitions | 500 per workflow service | |
| Concurrent runs | 20-100 base (plan-dependent) | Max 200-300 with purchased concurrency |
| Timeout range | 30-86,400 seconds | Default: 2 hours (7,200s) |
| Run duration | Up to 24 hours |
Instance Types
| Plan | Specs |
|---|---|
starter |
0.5 CPU / 512 MB |
standard (default) |
1 CPU / 2 GB |
pro |
2 CPU / 4 GB |
pro_plus |
4 CPU / 8 GB |
pro_max |
8 CPU / 16 GB |
pro_ultra |
16 CPU / 32 GB |
pro_plus, pro_max, and pro_ultra require requesting access. Set via the plan task option.
For current pricing, see Limits and Pricing for Render Workflows.
References
- Quick-reference cheat sheet: references/quick-reference.md (API surface, env vars, error types)
- Task patterns: references/task-patterns.md
- Local development: references/local-development.md
- Troubleshooting: references/troubleshooting.md
- Manual scaffolding (fallback): references/manual-scaffolding.md
- Official docs: render.com/docs/workflows
- Starter template (Python): render-examples/workflows-template-python
- Starter template (TypeScript): render-examples/workflows-template-ts
- SDK repo: github.com/render-oss/sdk
Related Skills
- render-deploy: Deploy web services, static sites, and databases
- render-debug: Debug failed deployments and runtime errors
- render-monitor: Monitor service health and performance
04 同仓库更多 Skills
android-emulator-qa
Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.
supabase-postgres-best-practices
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
render-web-services
配置 Render web service——端口绑定、TLS、健康检查、自定义域名、自动部署、PR 预览、持久化磁盘及部署生命周期。当用户需要搭建 web service、修复健康检查失败、添加自定义域名、配置零停机部署,或排查端口绑定问题时使用。
render-static-sites
在 Render 全球 CDN 上部署并配置静态站点——构建命令、发布路径、SPA 路由、重定向、自定义 header 及 PR 预览。当用户需要部署静态站点、搭建 React/Vue/Hugo/Gatsby 前端、配置 SPA 回退路由、添加重定向规则、自定义响应 header,或在静态站点与 web service 之间为前端做选择时使用。触发词:static site、CDN、SPA、single-page app、React deploy、Vue deploy、Hugo、Gatsby、Docusaurus、Jekyll、staticPublishPath。
render-scaling
为 Render 服务扩缩容——配置自动扩缩目标、选择实例规格、设置手动实例数并优化成本。当用户需要承接更多流量、设置自动扩缩、挑选合适的实例规格、降低成本,或排查诸如缩容缓慢、实例卡住等扩缩行为时使用。