Compile a workflow revision (async)
Resolve @references + compute the cache key. On a cache hit return the
stored graph (HTTP 200, cached=true); otherwise mark the revision
pending, enqueue the Celery compile task, and return HTTP 202 with the
task_id. Poll GET /workflows/revisions/{id} for the result.
Authorizations
Path Parameters
Body
Response
Cache hit — the stored compiled graph was reused; no compile enqueued.
Result of a compile request.
cached=True → the stored graph was reused (HTTP 200, no task ran).
Otherwise the compile was enqueued (HTTP 202) and task_id is the handle
for polling (GET /workflows/revisions/{id}) and cancelling. status is
the revision's compilation_status after the call (succeeded for a
cache hit, pending for a fresh enqueue).
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.