Skip to main content

The model

Four sentences carry almost everything:
  • A job holds an ordered list of steps.
  • A step is split into tasks.
  • Tasks run on machines.
  • You submit either a recipe, which is a job type plus a file and the flat fields that type understands, or a step tree, which is the whole structure spelled out.
A recipe is how a DCC submits: type, file, host, and the handful of fields that matter for that application. The service expands it into steps for you. A step tree is what the submitter builds when a job does several things in order, such as render, then convert the frames, then encode a movie.

Which surface

REST API

The whole surface. Everything else is built on it.

TypeScript SDK

Typed calls from Node or a browser.

Python SDK

No dependencies, so it can be used anywhere.

rfcli

One command per operation, for scripts and scheduled tasks.

Live updates

One WebSocket. What the app itself uses.

Webhooks

The farm calls you when a job, a step, a task or a machine changes.

Choosing between them

Live updates and webhooks are not alternatives, and neither drives the farm the way the REST API, the SDKs and the CLI do: both only listen. A socket subscription sees every change across the farm’s collections and needs a process of yours to stay connected. A webhook covers the lifecycle of jobs, steps, tasks and machines and needs nothing running at all, because the farm makes the call.

One vocabulary

An operation is named the same everywhere. GET /jobs is rf.jobs.getJobs() in TypeScript, farm.jobs.get_jobs() in Python, and rfcli jobs list on the command line. The names come from the API document’s own operation ids, so a route you find in the reference reads the same in whichever client you picked.

Before you start

You need the address of a server and an API key, unless your code runs on a machine that has RenderFlow installed, in which case it can talk to the service on 127.0.0.1 with no credential at all. That is how a DCC submitter works, and it is the shortest path to a first successful call.