Skip to main content

Build

Render Workflows

RenderOfficialCertified

Onboard first-time users, build, validate locally, deploy, and troubleshoot Render Workflows with the current Python or TypeScript SDK. Use for guided first-prompt setup (local testing, deploying an example agent workflow, and expanding to additional workflow use cases), defining or chaining tasks, integrating the SDK into an existing project, running tasks with the local development server, optionally scaffolding a starter, authoring "type: workflow" in render.yaml, triggering runs from application code, and releasing workflows, adopting durable steps, sleep, task invocation, and recovery/replay.

  • New
  • v1.0.7
  • Reviewed Jul 21
  • No reviews yet

Capabilities

  • First-Time Onboarding Fast Path

  • Tasks and Flows

    Choose the primitive before writing code

  • Check Current Sources

    Before generating or changing SDK code, identify the installed…

  • SDK Rules

    Read references/quick-reference.md when writing task code or upgrading…

Getting started

Full instructions

Example command

Check Current Sources

python -m pip show render

Instructions: SKILL.mdv1.0.7

Render Workflows

Render Workflows is an SDK-based product for orchestrating long-running distributed tasks. A workflow is the deployed service. It registers two kinds of functions: tasks and flows.

When choosing between a Workflow, cron job, and background worker, read references/service-types.md.

Use Render SDK 1.x APIs (render for Python or @renderinc/sdk for TypeScript; Python SDK 1.9.0+ requires Python 3.11+). Prefer the latest compatible SDK and CLI releases. Key version gates:

Feature Minimum SDK Minimum CLI
Tasks, local dev (render workflows dev) 1.0.1 (Py) / 1.0.0 (TS) 2.12.0
render workflows init and create 1.0.1 (Py) / 1.0.0 (TS) 2.16.0
ctx.metadata run IDs & idempotency keys 1.2.0 2.29.0 (local ctx.metadata IDs)
Durable flows (@app.flow / flow(), ctx.step, run_flow / runFlow) 1.7.0 (1.8.0 Py catchable StepError; 1.10.0 TS structured StepError) 2.35.0 (render workflows flows CLI)
Local durable flows & crash replay in render workflows dev, flows list --local 1.7.0 (1.8.0+ Py recommended) 2.37.0
Inspect inline step retry attempts (flows runs steps attempts list/show) 1.7.0 2.38.0

Render Workflows and its SDKs evolve quickly. Treat the installed SDK and CLI versions as authoritative for an existing project, and verify actual exports and signatures against the installed package before generating code. For new projects, install the latest 1.x SDK and current CLI.

First-Time Onboarding Fast Path

When the user gives an open-ended getting-started prompt — such as "Read github.com/render-oss/skills/tree/main/skills/render-workflows to set up and run a workflow", "Read github.com/render-oss/skills to set up and run a workflow", or "build and deploy my first workflow" — follow references/onboarding-quickstart.md:

  1. Preflight silently first: inspect workspace language, Python/Node runtime versions (Python 3.11+ for SDK 1.9.0+), Git remote, existing render.yaml, render --version, render whoami --output json, and render workspace current --output json before asking questions.
  2. Start with a zero-key TypeScript Durable Flow: demonstrate ctx.step → ctx.sleep → ctx.invoke → final step, with retries and fallback. Honor explicit language choices and existing projects. Follow the onboarding guide for capability checks and reduced demos when support is missing.
  3. Verify locally end-to-end: run render workflows dev, confirm registration (flows list --local for flows on CLI 2.37.0+, tasks list --local for tasks), execute a real run via CLI and a companion SDK client script (RENDER_USE_LOCAL_DEV=true), verify sleep/wake and the invoked child result when supported, stop the dev server, and show how to re-test locally.
  4. Deploy to Render and run once live: ask one concise confirmation (workspace, name, region, Git remote), help resolve only missing CLI/login/remote prerequisites, create the workflow (Blueprint if the repo uses render.yaml, else render workflows create), wait for ready, verify registration, and trigger one live run to completion.
  5. Close the loop and expand: return the Dashboard link (https://dashboard.render.com/wf/<workflow-id>), local/remote run commands, SDK trigger snippet (runFlow/run_flow or runTask/run_task), and 2–3 workflow candidates grounded in the user's app. Recommend the best first experiment and offer to build it; see the onboarding guide.

Tasks and Flows

Primitive Use for Execution
Task (@app.task / task()) Independent jobs, task chains, parallel fan-out Each run has its own compute and retry policy; ctx.run starts subtasks
Flow (@app.flow / flow()) Preserve completed work across infrastructure failures Sequential ctx.step calls run plain functions inline; replay reuses recorded results

Choose the primitive before writing code. Follow Tasks below for task setup, local validation, and clients. For flow code, adoption from tasks, capability checks, or recovery testing, follow Flows below. Deployment and workspace configuration are shared.

Check Current Sources

Before generating or changing SDK code, identify the installed versions. If the project or installed package is unavailable, explicitly label the proposed code as version-unverified:

bash
render --version
python -m pip show render
npm ls @renderinc/sdk

If the Render CLI is not installed:

  • macOS: brew install render
  • Linux/macOS: curl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh (installs to ~/.local/bin/render; add export PATH="$HOME/.local/bin:$PATH" if render is not on PATH)
  • Windows: download the executable from the CLI releases page

Use the source that matches the question:

  • Python SDK reference for Python signatures and minimum versions
  • TypeScript SDK reference for TypeScript signatures and minimum versions
  • Render CLI reference for current commands and flags
  • Defining Workflow Tasks for task behavior and run chaining
  • Limits and Pricing for Render Workflows for compute plans, quotas, retention, and pricing
  • Python examples and TypeScript examples for current scaffolding patterns
  • Render SDK repository for the implementation and changelogs

Before generating task or client code, fetch the relevant SDK example to verify current API patterns:

What Python TypeScript
Task definitions (subtasks, retry, fan-out) example/task/main.py examples/task/
Client (run, start, cancel, stream, list runs) example/client/main.py examples/client/
Async client example/client/async_main.py —

Do not silently upgrade an existing project's SDK major version. If an upgrade is part of the request, read the relevant SDK changelog and migrate all task definitions and callers together.

Tasks

SDK Rules

Preserve these rules in generated code:

  • Python installs and imports the render package, not render_sdk.
  • Every task function accepts a TaskContext as its first positional parameter. Render supplies it; callers do not include it in task input.
  • Chain a task run with await ctx.run(task_definition, ...args). A task definition is not directly callable.
  • All tasks in a ctx.run chain belong to the same workflow service. Trigger another workflow through the SDK client or Render API.
  • Python calls app.start() from its workflow entrypoint. TypeScript task registration auto-starts in the workflow environment.
  • A task reads run IDs from ctx.metadata (task_run_id, root_task_run_id, parent_task_run_id in Python; taskRunId, rootTaskRunId, parentTaskRunId in TypeScript), without a network request. Requires SDK 1.2.0+.
  • Task arguments and return values must be JSON-serializable. For images/files, pass an object-storage key or URL between tasks, not bytes, buffers, open files, or exceptions.

Read references/quick-reference.md when writing task code or upgrading legacy task calls to the context API. Read references/task-patterns.md for chaining, fan-out, retries, scheduled triggers, or cross-workflow calls.

Set Up a Task Project

Inspect the existing dependency manifest and source files before asking the user to paste them. If the files are unavailable, provide a concrete integration outline and clearly identify what remains unverified.

Do not require render workflows init. In an existing codebase, add the SDK and task definitions directly, preserve the project's dependency and build conventions, and validate them with the local development server. For a minimal project or direct integration guidance, read references/manual-scaffolding.md.

Optional starter scaffolding

Use the CLI scaffolder when the user wants a quick example project or a new standalone workflow service:

bash
render workflows init

For non-interactive setup, pass the language and destination explicitly:

bash
render workflows init --confirm --language python --dir workflows --git=false
render workflows init --confirm --language node --dir workflows --git=false

Use --git=false when scaffolding inside an existing Git repository to avoid creating a nested repository. Other useful options include --template, --install-deps, and --install-agent-skill; verify current behavior in the CLI reference.

Validate Tasks Locally

For a first integration, follow the runnable Python or TypeScript local SDK walkthrough: define ping, start the local task server, invoke it from a separate client script, and verify the returned "pong". No init, deployment, or Render API key is needed for this local example. Set local mode in the calling application process, not only in the task server's environment.

After adding or changing SDK task definitions, use the local development server as the primary validation loop. Start it with the workflow's actual start command:

bash
render workflows dev -- <workflow-start-command>

Verify both registration and execution. In another terminal, list and run tasks against the local server:

bash
render workflows tasks list --local
render workflows start <task-name> --local --input='[]' -o json
render workflows tasks runs show <task-run-id> --local -o json

If a task doesn't appear in the local task list, see Troubleshooting > Local task list is empty or missing tasks.

Use a JSON array for positional input. Python tasks can also receive a JSON object for named input. Read references/local-development.md for environment files, custom ports, run inspection, cancellation, and application-client configuration.

In non-interactive mode, workflows start returns the new task run ID before the run necessarily finishes. Use that ID with tasks runs show, polling for a bounded period until the run completes, fails, or is canceled. Verify the result or error, not only that the run was created.

When safe and practical, run this verification yourself and stop the dev server afterward. Do not claim a task registers successfully based only on source inspection.

Troubleshoot Missing Tasks

For tasks that work locally but are missing remotely, or client “Task not found” errors, read references/troubleshooting.md. Check the deployed version and registration logs, synchronous entrypoint imports, exact task slug, and credentials on the calling service before concluding the cause.

Trigger Deployed Tasks

Task slugs use {workflow-slug}/{task-name}.

Python, synchronous:

python
from render import Render

render = Render()
result = render.workflows.run_task("my-workflow/hello", ["world"])
print(result.results)

Python, asynchronous:

python
from render import RenderAsync

render = RenderAsync()
started = await render.workflows.start_task("my-workflow/hello", ["world"])
finished = await started
print(finished.results)

TypeScript:

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);

These clients use RENDER_API_KEY unless a token is passed explicitly. Prefer environment variables or a secret manager over hard-coded credentials.

When the caller may retry a start call, for example after a timeout, pass an idempotency key. Repeating a call with the same key within 24 hours returns the run that the first call started instead of starting another one. Keys are scoped to the workflow, so they hold across deploys.

python
render.workflows.start_task("my-workflow/charge", [order_id], idempotency_key=f"charge-{order_id}")
typescript
await render.workflows.startTask("my-workflow/charge", [orderId], { idempotencyKey: `charge-${orderId}` });

An idempotency key deduplicates starting a run. It does not make the task's own side effects safe to retry.

Workflows do not currently provide native scheduled triggers. Use a Render cron job that invokes the SDK client or API when scheduling is required.

Flows

Read references/flows.md before defining a flow or adopting flows from task orchestration. It covers capability checks, examples, execution rules, retries, idempotency, clients, and CLI inspection. For timed suspension or handing work to a task, read its durable sleep and flow-to-task invocation sections; verify SDK and backend support independently before generating code.

For replay errors or recovery testing, read references/durability.md. Report helper tests, SDK replay fixtures, and deployed recovery as separate checks.

Deploy the Workflow

Creating or releasing a workflow changes the user's Render account. For targeted local-development or code-editing requests, only deploy when deployment is part of the request. For open-ended onboarding requests (such as "set up and run a workflow"), complete local validation first and then proactively ask one concise confirmation to deploy to Render and trigger a first live run (see references/onboarding-quickstart.md). Always validate the selected primitive before deploying.

Before deploying or interpreting deploy status, read references/deployments.md, including its Workflow-specific task-registration behavior.

Before accessing deployed resources, follow references/render-access.md for authentication, secrets, and workspace selection.

Confirm the intended branch and region, and ensure the exact code to deploy is committed and pushed to GitHub, GitLab, or Bitbucket. Neither path deploys uncommitted local changes.

Two creation paths. MCP supports neither.

Path Use when Runtimes
Blueprint (render.yaml) The repo uses IaC, or the workflow ships beside other Render services python, node
render workflows create or Dashboard Standalone workflow with no Blueprint python, node, go, ruby, elixir, plus Docker in the Dashboard only

Deploy with a Blueprint (preferred)

Read references/blueprints.md for the current specification, remote-source requirements, validation, and sync behavior. Apply the Workflow-specific constraints below.

Do not set plan on a workflow service. Task compute is configured in code (plan on the task), not on the service.

yaml
services:
  - type: workflow
    name: my-workflow
    runtime: python
    region: oregon
    repo: https://github.com/render-examples/render-workflows-examples-python
    branch: main
    rootDir: hello-world
    buildCommand: pip install -r requirements.txt
    startCommand: python main.py
    envVars:
      - key: RENDER_API_KEY
        sync: false

TypeScript variant: runtime: node, buildCommand: npm install, and a startCommand that runs the project's workflow entrypoint. The TypeScript starter uses npm start (tsx src/main.ts); the manual setup in references/manual-scaffolding.md uses npm run workflows:start. Match both commands to the scripts in package.json. Use npm run build and node dist/main.js only if the project defines a build script that emits dist/main.js.

Required: type, name, runtime, region, startCommand, plus buildCommand and repo. Optional: branch, rootDir, buildFilter, autoDeployTrigger, envVars (applied to every task run).

The schema's required array lists only the first five. Do not treat it as the complete set: the validator also rejects a workflow missing buildCommand or repo.

  • buildCommand is required for non-docker workflows. Only Docker-based workflows omit a build command, and those cannot appear in a Blueprint, so a Blueprint workflow always needs one.
  • repo is required for git-based services. This fires even when validating from inside that repository with an origin remote, which is not how web and other Git-based types behave.

Caveats:

  • Preview environments skip workflow services. Other Blueprint resources still replicate.
  • Render rejects a Blueprint that would create a workflow with the same name as an existing Blueprint-managed workflow in the workspace.
  • The Workflows intro FAQ may still say Blueprints cannot manage workflows. That is stale. Follow the changelog and https://render.com/schema/render.yaml.json.

A passing validate is not proof a runtime is supported. render blueprints validate currently accepts runtime: docker on a workflow even though the schema rejects it.

Pair with render-blueprints for wiring and render-deploy for the apply/deeplink flow.

Create with the CLI or Dashboard

Use this for a standalone workflow with no Blueprint. Interactive mode prompts for configuration:

bash
render workflows create

Non-interactive, using the build and run commands from the starter template or the project's existing configuration:

bash
render workflows create \
  --name my-workflow \
  --repo . \
  --branch <branch> \
  --region <region> \
  --runtime python \
  --build-command "pip install -r requirements.txt" \
  --run-command "python main.py"

--repo . resolves the repository's remote. For a workflow in a subdirectory, add --root-directory. Environment variables can be supplied with repeatable --env-file and --env-var flags. Never expose secrets in commands or output.

A workflow can build from a Dockerfile, but only through the Dashboard (New > Workflow): the CLI and API cannot create one, and neither can a Blueprint. Docker-based workflows take no build command and cannot run against the local task server. No creation path can pull a prebuilt registry image.

For later explicit releases, use:

bash
render workflows versions release <workflow-id> \
  --commit <pushed-commit-sha> \
  --wait

Do not report deployment success from command acceptance alone. Wait for the release, verify registration, and run a safe invocation through to its expected result. For tasks:

bash
render workflows versions list <workflow-id> -o text
render workflows tasks list <ready-workflow-version-id> -o text
render workflows start <workflow-slug>/<task-name> --input='[]' -o json
render workflows tasks runs show <task-run-id> -o json

Poll tasks runs show for a bounded period if the run is still queued or running. Stop and report the release or task error instead of retrying an external mutation indefinitely.

If deployment fails, read references/troubleshooting.md. Use the render-debug skill for broader Render deployment diagnosis when it is available.

Limits, Compute Plans, and Pricing

Do not hard-code compute-plan IDs, resource specifications, quotas, retention periods, or prices in this skill or its references.

Before setting a task's plan, estimating cost, or advising on capacity, consult references/compute-plans.md and Limits and Pricing for Render Workflows. Keep only API-shape constraints needed to write correct code in the skill.

References

  • references/onboarding-quickstart.md: guided first-prompt onboarding from zero-key local test to Render deploy and next-workflow expansion

  • references/render-access.md: shared authentication, secrets, workspace selection, and CLI usage

  • references/blueprints.md: shared Blueprint specification, validation, and sync guidance

  • references/flows.md: flow APIs, examples, execution rules, clients, and CLI inspection

  • references/durability.md: replay diagnosis and recovery verification

  • references/quick-reference.md: task APIs, clients, and legacy context upgrades

  • references/compute-plans.md: current compute-plan guidance for task plan values

  • references/deployments.md: deploy lifecycle and Workflow task registration

  • references/service-types.md: choosing between Workflows and other service types

  • references/task-patterns.md: chaining, fan-out, retries, cron triggers, and cross-workflow calls

  • references/local-development.md: local server, CLI runs, environment configuration, and limitations

  • references/troubleshooting.md: common setup, registration, execution, and client failures

  • references/manual-scaffolding.md: direct SDK project setup without workflows init

  • render-blueprints: type: workflow in render.yaml, previews, wiring
  • render-deploy: Blueprint apply flow for multi-service apps that include a workflow
  • render-debug: diagnose deployment and runtime failures
  • render-monitor: inspect service health and performance

Current documentation retrieval

Whenever this skill directs you to consult current Render documentation:

  1. Retrieve the linked Markdown document directly with an available URL-fetching tool or HTTP client, such as curl. Do not substitute web-search summaries for the document.
  2. Confirm that retrieval succeeded and returned the expected document, then read its contents. Saving a file or printing its path is not sufficient.
  3. If the request fails or your tool cannot read the Markdown response, open and read the linked HTML version instead.
  4. If neither version can be retrieved, disclose that the current reference is unavailable and follow any topic-specific fallback in the skill. Use bundled guidance only for stable constraints, and do not guess at changeable platform details.

When a task requires multiple references, apply this workflow to each one and distinguish the documents you verified from those that remain unavailable.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Render

View source →
render-sandboxesRun untrusted code in Render Sandboxes using the SDK or CLI. Use for user-submitted or agent-generated code, isolated builds and tests, file transfer, snapshots and reusable environments, egress policies, and sandbox lifecycle or execution…1 installsrender-cliInstalls and uses the Render CLI for deploys, logs, SSH, psql, Blueprint planning, approval, validation, and automation. Use when the user needs to run Render CLI commands, script deploys in CI/CD, authenticate with an API key, query…1 installsrender-domainsConfigures custom domains and TLS certificates on Render—DNS setup, CNAME records, apex domains, wildcard domains, and certificate troubleshooting. Use when the user needs to add a custom domain, configure DNS, set up HTTPS/TLS,…0 installsrender-background-workersSets up and configures background workers on Render for queue-based job processing. Use when the user needs to process async jobs, consume from a queue, run Celery/Sidekiq/BullMQ/Asynq/Oban workers, handle graceful shutdown with SIGTERM,…0 installsrender-blueprintsAuthors and validates render.yaml Blueprints for Render infrastructure. Use when the user needs to write or edit a render.yaml, wire services together with fromDatabase/fromService/fromGroup, set up projects and environments for…0 installsrender-monitorMonitor Render services in real-time. Check health, performance metrics, logs, and resource usage. Use when users want to check service status, view metrics, monitor performance, or verify deployments are healthy.0 installs

Frequently asked questions about render-workflows

What does the render-workflows skill do?

Onboard first-time users, build, validate locally, deploy, and troubleshoot Render Workflows with the current Python or TypeScript SDK. Use for guided first-prompt setup (local testing, deploying an example agent workflow, and expanding to additional workflow use cases), defining or chaining tasks, integrating the SDK into an existing project, running tasks with the local development server, optionally scaffolding a starter, authoring "type: workflow" in render.yaml, triggering runs from application code, and releasing workflows, adopting durable steps, sleep, task invocation, and recovery/replay. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the render-workflows skill?

Run `npx @skills-hub-ai/cli install render-workflows` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/render-workflows/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does render-workflows work with?

render-workflows runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the render-workflows skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use render-workflows after installing it?

In Claude Code, type `/render-workflows` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the render-workflows skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/render-workflows)](https://skills-hub.ai/skills/render-workflows)
HTML
<a href="https://skills-hub.ai/skills/render-workflows"><img src="https://skills-hub.ai/api/badges/skill/render-workflows" alt="Install on Skills Hub"></a>

More options in the badge docs.