dimberman opened a new issue #8001: Support querying dag_run state by run_id
URL: https://github.com/apache/airflow/issues/8001
 
 
   
   
   Ticket was created 24/Feb/17 19:51
   
   **Description**
   
   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.
   
   **Use case / motivation**
   
   **Related Issues**
   
   Moved here from https://issues.apache.org/jira/browse/AIRFLOW-905

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to