繁体   English   中英

在 Airflow REST API dagRuns 调用中忽略 execution_date_gte 参数

[英]execution_date_gte parameter ignored in Airflow REST API dagRuns call

execution_date_gte参数似乎在 Airflow REST API dagRuns调用中无效。

curl -X GET 'http://localhost:8080/api/v1/dags/demand_forecast/dagRuns' -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{"execution_date_gte": "2023-02-02T00:00:00+00:00"}' --user "airflow:airflow"

回复:

{
  "dag_runs": [
    {
      "conf": {},
      "dag_id": "demand_forecast",
      "dag_run_id": "scheduled__2022-02-15T00:00:00+00:00",
      "end_date": "2022-08-22T08:46:37.026194+00:00",
      "execution_date": "2022-02-15T00:00:00+00:00",
      "external_trigger": false,
      "logical_date": "2022-02-15T00:00:00+00:00",
      "start_date": "2022-08-22T08:46:15.451700+00:00",
      "state": "success"
    }
  ],
  "total_entries": 1
}

这里返回的 dag 运行的execution_date小于提供的execution_date_gte (=2023-02-02T00:00:00+00:00)

解决方案: execution_date_gte应该作为查询参数传递给 GET 请求。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM