You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/09/11 16:27:01 UTC

[jira] [Commented] (AIRFLOW-3437) Formatted json should be returned when dag_run is triggered with experimental api

    [ https://issues.apache.org/jira/browse/AIRFLOW-3437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16927759#comment-16927759 ] 

ASF GitHub Bot commented on AIRFLOW-3437:
-----------------------------------------

stale[bot] commented on pull request #4275: AIRFLOW-3437 Adding better json
URL: https://github.com/apache/airflow/pull/4275
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Formatted json should be returned when dag_run is triggered with experimental api
> ---------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-3437
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3437
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: api
>    Affects Versions: 1.10.0, 2.0.0
>            Reporter: Saumya Saxena Gupta
>            Assignee: Saumya Saxena Gupta
>            Priority: Major
>
> *Scenario* -> Developer wants to trigger DAG_RUN through API
> *Issue* -> Current rest API "/api/experimental/dags/<dag_id>dag_runs"returns message like below, which makes difficult for developer to figure out execution date/run_id and execution date/run_id extract logic has to be written  
> {
>  "message": "Created <DagRun example_bash_operator @ 2018-12-03 11:16:36+00:00: manual__2018-12-03T11:16:36+00:00, externally triggered: True>"
> }
> *Improvement Suggestion* -> rest API "/api/experimental/dags/<dag_id>dag_runs" should return json representing dag_run object , something like below
>  {
>  "dag_id": "example_bash_operator",
>  "dag_run_url": "/admin/airflow/graph?execution_date=2018-12-03+11%3A11%3A18%2B00%3A00&dag_id=example_bash_operator",
>  "execution_date": "2018-12-03T11:11:18+00:00",
>  "id": 142,
>  "run_id": "manual__2018-12-03T11:11:18+00:00",
>  "start_date": "2018-12-03T11:11:18.267197+00:00",
>  "state": "running"
> }\
> With the Json returned as shown above , picking dag_run details becomes easy.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)