You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Steen Manniche (JIRA)" <ji...@apache.org> on 2017/12/13 14:02:00 UTC

[jira] [Commented] (AIRFLOW-905) Support querying dag_run state by run_id

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

Steen Manniche commented on AIRFLOW-905:
----------------------------------------

Is this a duplicate of AIRFLOW-167?

> Support querying dag_run state by run_id
> ----------------------------------------
>
>                 Key: AIRFLOW-905
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-905
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: cli
>            Reporter: Shashi Kant Sharms
>            Assignee: Shashi Kant Sharms
>            Priority: Minor
>
> Support querying dag_run and task_instances by run_id. Currently run id is supported in trigger dag command but it is no used in any of querying command.
> Existing Commands :
> # airflow dag_state [-h] [-sd SUBDIR] dag_id execution_date
> # airflow task_state [-h] [-sd SUBDIR] dag_id task_id execution_date
> New Commands :
> # airflow dag_state [-h] [-sd SUBDIR] dag_id execution_date|run_id
> # airflow task_state [-h] [-sd SUBDIR] dag_id task_id execution_date|run_id
> For dag state change we can pass run id from CLI and pass the same in find function for Dags.
> for task_state we need to modify the Task Instance model to include run id and then we can find based upon run id as well. As part of this we will make execution date as optional attribute for task instance find function. 
> As part of this change I'll also include run id in "airflow run"  and "airflow render"  commands. Details will follow around this. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)