Skip to content

Not possible to trigger dag run #55

@piotrlinski

Description

@piotrlinski

According to documentation the below code should trigger a dug run

api_response = api_instance.post_dag_run( dag_id = "dag_name", dag_run = DAGRun(..., state=DagState("queued")))

instead it raises the API error:

raise ApiException(http_resp=r) airflow_client.client.exceptions.ApiException: (400) Reason: BAD REQUEST HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 15 Dec 2022 13:18:16 GMT', 'Content-Type': 'application/problem+json', 'Content-Length': '210', 'Connection': 'keep-alive', 'X-Robots-Tag': 'noindex, nofollow', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'}) HTTP response body: { "detail": "Property is read-only - 'state'", "status": 400, "title": "Bad Request", "type": "https://airflow.apache.org/docs/apache-airflow/2.4.1/stable-rest-api-ref.html#section/Errors/BadRequest" }

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions