execution_id. You can then list your runs and fetch any
one of them, including its full result, long after the streaming connection has
closed.
A workflow run is stored once and is shared between the API and the Bigdata.com app.
A run you start through the API appears in your run history in the app, and a run you
start in the app can be retrieved through the API. Persistence and history are a
Workflows feature. The Research Agent does not store runs this way.
Enable persistence
A run is stored only when you execute it withpersistence_mode set to enabled:
persistence_mode is left at its default of disabled, the run streams as
normal but is not stored. You cannot list or retrieve it afterward.
List executions
GET /v1/workflow/executions returns your stored runs, newest first.
resultsis the list of executions. Each one hasexecution_id,name,status,template_id,inputs,is_public,date_created, andlast_updated.countis the number of matching executions.cursoris the pointer to the next page. Pass it back as thecursorquery parameter to fetch that page. It isnullon the last page.
limit sets the page size and defaults to
20. cursor fetches the next page. template_id lists only the runs of one
template.
Retrieve a single execution
GET /v1/workflow/executions/{execution_id} returns one run with its full result.
Use this to retrieve a run’s output after the streaming connection has closed.
events list uses the same message types documented in
Streaming responses. The
handler you use for a live stream can therefore replay a stored run without change.
events is null while a run is still pending or running.