afsalabdup edited a comment on issue #9343:
URL: https://github.com/apache/airflow/issues/9343#issuecomment-645362906


   Thanks @kaxil . Can we get list of downstream tasks using airflow command ?
   **Use case:**
   Consider DAG which contains 4 tasks - Dummy1 > Dummy2 > Dummy3 > Dummy4 
   If I want to put a future instance task 'Dummy2' ON HOLD, we can mark that 
task to success through CLI by providing future execution id, but the issue is 
when I mark that task to success, downstream tasks (Dummy3 and Dummy4) will 
start running immediately because downstream will check if its upstream Dummy2 
is success or not. I want to put all downstream tasks ON HOLD, means I need to 
mark all downstream tasks to success, so that Dummy2's downstreams won't 
trigger by itself. If we can include downstream tasks while marking Dummy2 to 
success, then we do not have to run 'mark success' commands individually for 
all downstream tasks.
   
   So my question is can we include downstream tasks in the below command ? So 
that it will mark dummy2 and all it's downstream tasks to success.
   airflow run -fAIim a_dag dummy2 2020-06-12T21:00:00+00:00
   
   or is there any way to get list of all downstream tasks for a task using 
airflow commands ? so that I can write a bash loop to to run the command for 
each of them.


----------------------------------------------------------------
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]


Reply via email to