Nova API — one pipeline
The operations Nova tags public under /api/pipelines/{id}. Generated from reference-src/nova-openapi.json.
GET /api/pipelines/{namespace}/{name}
Operation id pipelines_get: in Python client.call("pipelines_get", …), on the command line stardelt api pipelines_get.
One pipeline: the list fields, the latest 20 runs, and the resource's params, retries and options (defaults filled in when a field is absent, so the edit dialog can prefill). A pipeline whose DAG does not exist yet answers 200 with loaded: false and state: "loading". A pipeline of another group answers 404. History of a deleted pipeline is not offered in this version: without the resource the answer is 404.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
200 | The pipeline, its latest runs, params, retries and options |
401 | No token to sign in with |
404 | No such pipeline for this caller |
502 | The scheduler or the cluster did not answer |
503 | No cluster connection, or the scheduler is not configured |
PUT /api/pipelines/{namespace}/{name}
Operation id pipelines_update: in Python client.call("pipelines_update", …), on the command line stardelt api pipelines_update.
Change a pipeline Nova created (app.kubernetes.io/managed-by: stardelt-nova) and nothing else. A statement pipeline's body carries sql; a notebook pipeline's carries notebook ({ name, objectVersion, params }), and an update never changes which of the two it is: sql on a notebook pipeline is 400 this pipeline runs a notebook, a notebook on a statement pipeline 400 this pipeline runs a statement, and both or neither 400 give a statement, a notebook, a dbt run or a quality run. A task-list pipeline's body carries tasks and replaces the whole list; any other body on a task list is 409 this pipeline has several tasks; change it in its file and deploy again, and tasks on a statement or notebook pipeline is 400 this pipeline runs a statement / this pipeline runs a notebook. The body describes the whole editable state: an omitted schedule removes it, an omitted params removes the table, an omitted option keeps its default, and a notebook body's file name, version and parameters replace the task's config. Refusals: a pipeline the caller cannot see 404, and one it can see but may not change — a viewer (spec.viewers) — 403 only the owner group may change this pipeline; a pipeline Nova did not write, or one whose task shape is not exactly one run task of kind sql or notebook 409; the statement, a parameter, a placeholder, a notebook name, a parameter value or count, or a version that is not in the store (503 without NOVA_S3_*, 502 when S3 does not answer), an option, the cron or the timezone as on create 400; the group's principal no longer ready 409 with the principals route's message; a concurrent change to the resource 409 the pipeline changed while you edited it: reload. A body may carry resourceVersion (the one pipelines_spec answered): when it is not the stored one, the answer is that same 409 and nothing is written; omitted, the update behaves as before. In a stage whose NOVA_STAGE_KIND is prod, a body that schedules a notebook is refused with 400 "In production a notebook comes from Git. Deploy it with a bundle." unless it carries a bundle deploy stamp (provenance, or one already on the pipeline); other stages and statement schedules are unaffected. The audit line carries the statement's length, the cron and, for a notebook, the group, the file name and the pinned version — never the statement and never a parameter value. Answers Cache-Control: no-store.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
description | string (nullable) | No | One line saying what the pipeline does (spec.description); at most 200 characters. Omitted or blank removes the line, as the rest of the body describes the whole editable state. | ||
notebook | object | No | The notebook, its version and its parameters for a notebook pipeline; a statement pipeline refuses it. | ||
notebook.connection | string (nullable) | No | The Connection whose secret fields the task pod receives as CONN_<NAME>_<KEY> (the CRD's tasks[].connection). Omitted: the pod gets no connection variable. Nova checks the shape only; whether the connection exists, is Ready, is of this group and is in its usableBy is the loader's job, and its sentence is the one the task log shows. | ||
notebook.name | string | Yes | <group>/<name> is the object key; the group is the pipeline's ownerGroup, so a notebook of another group can never be named. | ||
notebook.objectVersion | string | Yes | The S3 object version, never a branch or a tag: exactly the bytes a person published. | ||
notebook.params | object (map of string) | No | Parameter values by name; at most 32, names [A-Za-z_][A-Za-z0-9_]{0,63}, values up to 256 characters. Written as the task's config.params JSON object string. | ||
notify | object | No | Who is told when a run ends (spec.notify). Omitted keeps the stored spec.notify; given with all three lists empty, it removes it — a form save must not wipe a notification a bundle deployed until the form edits it. | ||
notify.onFailure | array of string | No | Destinations told when the run fails, after the last retry. | ||
notify.onRecovered | array of string | No | Destinations told on the first success after a failure. | ||
notify.onSuccess | array of string | No | Destinations told when the run succeeds. | ||
options | object | No | The whole option set; omitted means the defaults. | ||
options.backoffMinutes | integer (nullable) | No | The wait between attempts, 1 to 60 minutes. | format int64 | |
options.concurrency | string (nullable) | No | Forbid (one run at a time, the default) or Allow (runs side by side). | ||
options.retries | integer (nullable) | No | Extra attempts after a failure, 0 to 5. | format int64 | |
options.timeoutMinutes | integer (nullable) | No | The longest a whole run may take, 1 to 720 minutes. | format int64 | |
params | object (map of string) | No | The whole parameter table; omitted means none. | ||
provenance | object | No | Which bundle, target and commit this update deploys. Omitted leaves what the pipeline already says untouched; given, it replaces it. | ||
provenance.bundle | string | Yes | The bundle's name: 3 to 40 lower-case letters, digits and dashes. | ||
provenance.expiresAt | string (nullable) | No | When the preview copy is due to be removed, RFC 3339. At most 31 days after the deploy. | ||
provenance.preview | string (nullable) | No | The preview this deploy belongs to (stardelt bundle deploy --preview ID). Omitted on a normal deploy; set together with expires_at. | ||
provenance.repository | string (nullable) | No | The bundle's repository as an https://host/path address, so a later stage can link the pull request that promotes a commit. Omitted when the bundle's checkout names none. | ||
provenance.revision | string (nullable) | No | The commit the bundle was read at: 7 to 64 hex digits, with -dirty appended when the working tree had uncommitted changes. Omitted when the bundle is not in a Git checkout. | ||
provenance.target | string | Yes | The target of the bundle: 1 to 32 lower-case letters, digits and dashes. | ||
publish | string | No | direct, wap, proposal | ||
resourceVersion | string (nullable) | No | The resourceVersion the caller read (pipelines_spec). When it is given and is not the stored one, somebody changed the pipeline in between: 409 the pipeline changed while you edited it: reload, and nothing is written. Omitted keeps the old behaviour (the update then only fails if the resource changes while the update itself runs). | ||
schedule | object | No | Omitted means no schedule: the pipeline then runs on demand only. | ||
schedule.cron | string | Yes | |||
schedule.timezone | string | Yes | |||
sql | string | No | The statement of a statement pipeline; a notebook pipeline refuses it. | ||
tasks | array of object (nullable) | No | A whole task list instead of one run task: 1 to 30 tasks, each a statement, a pinned notebook, a dbt run or SQL checks, with dependencies. Exclusive with sql and notebook. | ||
tasks[].dbt | object (map of any) | No | A dbt run instead of a statement or a notebook: exactly one of the six. | ||
tasks[].dbt.batches | array of string (nullable) | No | 1 to 8 selectors, run in order (config.batches as the JSON array text). | ||
tasks[].dbt.project | string | Yes | A directory name under /opt/dbt/projects in the tool image. | ||
tasks[].dbt.select | string (nullable) | No | |||
tasks[].dbt.threads | integer (nullable) | No | 1 to 16; omitted is 4. | min 0; format int32 | |
tasks[].dbt.vars | object (map of string) (nullable) | No | |||
tasks[].dependsOn | array of string | No | Names of the tasks that must succeed first; at most 8, each a task of this list. | ||
tasks[].name | string | Yes | Unique within the pipeline: [a-z0-9][a-z0-9_-]{0,62} (the CRD also accepts capitals). | ||
tasks[].notebook | object | No | A published notebook version to run instead: exactly one of the six. | ||
tasks[].notebook.connection | string (nullable) | No | The Connection whose secret fields the task pod receives as CONN_<NAME>_<KEY> (the CRD's tasks[].connection). Omitted: the pod gets no connection variable. Nova checks the shape only; whether the connection exists, is Ready, is of this group and is in its usableBy is the loader's job, and its sentence is the one the task log shows. | ||
tasks[].notebook.name | string | Yes | <group>/<name> is the object key; the group is the pipeline's ownerGroup, so a notebook of another group can never be named. | ||
tasks[].notebook.objectVersion | string | Yes | The S3 object version, never a branch or a tag: exactly the bytes a person published. | ||
tasks[].notebook.params | object (map of string) | No | Parameter values by name; at most 32, names [A-Za-z_][A-Za-z0-9_]{0,63}, values up to 256 characters. Written as the task's config.params JSON object string. | ||
tasks[].python | object (map of any) | No | A published .py file to run instead. | ||
tasks[].python.file | string | Yes | The .py file name under the pipeline's ownerGroup, as notebooks_publish stored it. | ||
tasks[].python.objectVersion | string | Yes | The S3 object version, never a branch or a tag. | ||
tasks[].python.params | object (map of string) | No | The run's parameters, written as the task's config.params JSON object string. | ||
tasks[].quality | object | No | SQL assertions instead of a statement, a notebook or a dbt run: exactly one of the six. | ||
tasks[].quality.checks | array of object | Yes | 1 to 50 SQL assertions; a check passes when its query returns no rows. | ||
tasks[].quality.checks[].name | string | Yes | [A-Za-z0-9][A-Za-z0-9_-]{0,62} and unique within the task. | ||
tasks[].quality.checks[].severity | string (nullable) | No | error fails the run, warn only logs it; omitted is error. | ||
tasks[].quality.checks[].sql | string | Yes | The assertion: it passes when the query returns no rows. | ||
tasks[].sparkPipeline | object | No | A declared Spark graph instead of a statement, a notebook, a dbt run or SQL checks: exactly one of the six. | ||
tasks[].sparkPipeline.files | object (map of string) | No | The graph's files, relative path to text; at most 64 files of 64 KiB each, the whole graph at most 256 KiB. spark-pipeline.yml must be one of them. | ||
tasks[].sparkPipeline.fullRefresh | array of string (nullable) | No | Datasets to rebuild from scratch; 1 to 32 names. | ||
tasks[].sparkPipeline.project | string | Yes | The bundle directory that holds spark-pipeline.yml. | ||
tasks[].sparkPipeline.refresh | string (nullable) | No | incremental (the default) or full. | ||
tasks[].sql | string | No | The statement to run; exactly one of this, notebook, python, dbt, quality and sparkPipeline is given. | ||
tasks[].writes | array of string | No | The tables a sql, spark-pipeline or notebook task writes, as catalog.schema.table; at most 16. spec.publish: wap audits exactly these tables. | ||
triggers | array of object (nullable) | No | Tables whose update starts the run (spec.triggers). At most one entry, 1 to 10 tables, and not together with schedule; omitted means none. | ||
triggers[].mode | string (nullable) | No | |||
triggers[].tablesUpdated | array of string | No | |||
viewers | array of string (nullable) | No | Omitted keeps the stored viewers; an empty list removes them. |
Responses
| Code | Description |
|---|---|
200 | The resource as written |
400 | The statement, the cron or the timezone is invalid |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller |
409 | Managed outside Nova, an uneditable shape, no ready principal, or a conflict |
502 | The cluster did not answer |
503 | No cluster connection |
DELETE /api/pipelines/{namespace}/{name}
Operation id pipelines_delete: in Python client.call("pipelines_delete", …), on the command line stardelt api pipelines_delete.
Delete a pipeline Nova created. Only the owner group and administrators may delete: a viewer (spec.viewers) answers 403 only the owner group may change this pipeline, and a pipeline the caller cannot see 404. A pipeline that carries app.kubernetes.io/managed-by: stardelt-nova may be deleted: a kubectl or GitOps pipeline answers 409 instead. Airflow is not called — the resource is the source of truth; the DAG leaves the scheduler's default list after about 90 seconds while its history stays readable. Answers 204 with Cache-Control: no-store; the attempt is audited.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
204 | Deleted (or already gone) |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller |
409 | The pipeline is managed outside Nova |
502 | The cluster did not answer |
503 | No cluster connection |
POST /api/pipelines/{namespace}/{name}/backfills
Operation id pipelines_backfill_start: in Python client.call("pipelines_backfill_start", …), on the command line stardelt api pipelines_backfill_start.
Start a backfill: run the pipeline once for every scheduled date between fromDate and toDate, inclusive, through Airflow's own backfill API. This is a change, not a run: a viewer (spec.viewers) answers 403, a paused pipeline 409 (Airflow would create the backfill and leave every run queued), and a pipeline the scheduler has not loaded yet 409. A dry run decides first: a range with no date to run answers 409 (dates that already ran are skipped unless reprocess asks for them: none (the default), failed or completed), more than 31 dates answers 400. Airflow's own refusal (409 when a backfill is already open for this pipeline) is passed on with its sentence. params are this backfill's values of the schedule's ${params.<name>} placeholders, and travel as Airflow's dag_run_conf into every run. Answers 201 with the backfill and the dates it will run. The attempt is audited, including a refusal. Answers Cache-Control: no-store.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
fromDate | string | Yes | |||
params | object (map of string) (nullable) | No | |||
reprocess | string (nullable) | No | |||
toDate | string | Yes |
Responses
| Code | Description |
|---|---|
201 | The backfill, started |
400 | The body is not JSON, a date is not YYYY-MM-DD, fromDate is after toDate, or the range has more than 31 dates |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller |
409 | The pipeline is paused or not loaded, no date in the range would run, or a backfill is already open |
502 | The scheduler or the cluster did not answer |
503 | No cluster connection, or the scheduler is not configured |
GET /api/pipelines/{namespace}/{name}/backfills/{id}
Operation id pipelines_backfill_state: in Python client.call("pipelines_backfill_state", …), on the command line stardelt api pipelines_backfill_state.
The state of a backfill: isPaused, completedAt (its only completion signal) and the runs it created (backfill__…, with their date and state). Like starting one, this is the owner group's and administrators' verb: a viewer answers 403, and a backfill that does not exist answers 404. Answers Cache-Control: no-store.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | Yes | Airflow's backfill id |
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
200 | The backfill and its runs |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller, or no such backfill |
502 | The scheduler or the cluster did not answer |
503 | No cluster connection, or the scheduler is not configured |
DELETE /api/pipelines/{namespace}/{name}/backfills/{id}
Operation id pipelines_backfill_cancel: in Python client.call("pipelines_backfill_cancel", …), on the command line stardelt api pipelines_backfill_cancel.
Cancel a backfill: Airflow sets its completedAt and fails every run that is still queued; a run already running keeps running (its side effects can still commit). This is the owner group's and administrators' verb: a viewer answers 403, and a backfill that does not exist answers 404. Answers the backfill and Cache-Control: no-store. The attempt is audited, including a refusal.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | Yes | Airflow's backfill id |
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
200 | The backfill, now cancelled |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller, or no such backfill |
502 | The scheduler or the cluster did not answer |
503 | No cluster connection, or the scheduler is not configured |
POST /api/pipelines/{namespace}/{name}/pause
Operation id pipelines_pause: in Python client.call("pipelines_pause", …), on the command line stardelt api pipelines_pause.
Pause a pipeline. Idempotent: pausing a paused pipeline answers 200. Changing a pipeline is the owner group's and administrators' verb: a viewer (spec.viewers) may read and run it but not pause it, and answers 403 only the owner group may change this pipeline — a pipeline the caller cannot see stays 404. A pipeline the scheduler has not loaded answers 409. Answers the fresh PipelineView — the DAG as Airflow returned it after the patch — and Cache-Control: no-store. The attempt is audited, including a refusal.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
200 | The pipeline, now paused |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller |
409 | The scheduler has not loaded this pipeline yet |
502 | The scheduler or the cluster did not answer |
503 | No cluster connection, or the scheduler is not configured |
POST /api/pipelines/{namespace}/{name}/resume
Operation id pipelines_resume: in Python client.call("pipelines_resume", …), on the command line stardelt api pipelines_resume.
Resume a pipeline. Idempotent: resuming a running pipeline answers 200. Changing a pipeline is the owner group's and administrators' verb: a viewer (spec.viewers) may read and run it but not resume it, and answers 403 only the owner group may change this pipeline — a pipeline the caller cannot see stays 404. A pipeline the scheduler has not loaded answers 409. Answers the fresh PipelineView — the DAG as Airflow returned it after the patch — and Cache-Control: no-store. The attempt is audited, including a refusal.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
200 | The pipeline, now unpaused |
401 | No token to sign in with |
403 | The caller may see but not change this pipeline |
404 | No such pipeline for this caller |
409 | The scheduler has not loaded this pipeline yet |
502 | The scheduler or the cluster did not answer |
503 | No cluster connection, or the scheduler is not configured |
GET /api/pipelines/{namespace}/{name}/spec
Operation id pipelines_spec: in Python client.call("pipelines_spec", …), on the command line stardelt api pipelines_spec.
The editable document of one pipeline, in the shape of the body of pipelines_create: name, ownerGroup, a sql statement or a notebook (file name, pinned object version, parameters), a schedule (cron and timezone; a resource without a zone is UTC), the params table (left out when empty) and the options with their defaults filled in. It is built from the resource alone, so it answers while the scheduler is down. resourceVersion is the resource's version; managedBy is nova or other (kubectl or GitOps); editable is true only for a pipeline Nova wrote that has one run task of kind sql or notebook, or a task list whose every task is sql, notebook or dbt; an update replaces a task list whole. A pipeline that is not editable is still readable: its document then leaves out what the form cannot show. The document never holds status, annotations, a connection's secret or a token. A pipeline of another group answers 404. Answers Cache-Control: no-store.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | Pipeline name |
namespace | path | string | Yes | The Pipeline's namespace (Nova's own) |
Responses
| Code | Description |
|---|---|
200 | The document, its resource version, who manages it, and whether it is editable |
401 | No token to sign in with |
404 | No such pipeline for this caller |
502 | The cluster did not answer |
503 | No cluster connection |