Fork a workflow revision into a draft and recompile it
Recompile a (possibly published) revision without mutating it.
The active/published revision is immutable — the runtime reads its graph live —
so this forks the source into a fresh DRAFT, force-compiles the draft, and
returns it (HTTP 202). Poll GET /workflows/revisions/{revision.id}; promote
the draft via set-active-revision once the recompile lands and is reviewed.
Authorizations
Path Parameters
Body
Body for POST /workflows/revisions/{id}/recompile.
Recompile = fork the (typically frozen/published) source revision into a fresh
draft and force-compile the draft. name overrides the auto-generated draft
name; compilation_strategy overrides the strategy carried from the source.
Response
Successful Response
Result of a recompile (fork-then-compile).
revision is a NEW draft revision forked from source_revision_id and is
being compiled (always HTTP 202 — a recompile always forces). Poll
GET /workflows/revisions/{revision.id} for the result. The source revision
is never mutated; promote the draft via set-active-revision when ready.
Full revision response — the compile-poll target (WF-08).
Clients poll GET /workflows/revisions/{id} and read compilation_status
compilation_errors+compiled_graphto determine whether an async compile job is done.compilation_task_idis the Celery task handle the conductor uses to cancel an in-flight compile.