Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 963 Bytes

File metadata and controls

37 lines (27 loc) · 963 Bytes

Hello World - Getting Started with Render Workflows

The simplest possible workflow example to help you understand the basics of Render Workflows.

What you'll learn

  • What is a task? A function that can be executed as a workflow
  • What is task chaining? A task calling another task using await
  • How to orchestrate: Combining multiple tasks to create workflows

Workflow structure

calculateAndProcess (multi-step orchestrator)
  ├── addDoubledNumbers
  │   ├── double (chained run #1)
  │   └── double (chained run #2)
  └── processNumbers
      ├── double (chained run for item 1)
      ├── double (chained run for item 2)
      └── double (chained run for item N)

Run locally

npm install
npm run build
npm start

Deploy to Render

Create a new Workflow service on Render:

  • Build command: npm install && npm run build
  • Start command: npm start