-
Notifications
You must be signed in to change notification settings - Fork 63
Description
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" }