XD-DENG commented on issue #4504: [AIRFLOW-3690] Fix api.common.experimental.mark_tasks.set_state for manually-triggered DAG Runs URL: https://github.com/apache/airflow/pull/4504#issuecomment-453830922 Hi @kaxil , please find the steps to reproduce the issue this PR is trying to solve. ## **Step-1: Sample DAG Runs** Using `example_bash_operator` as example, I have three DAG Runs, the first two are scheduled by the scheduler, and the 3rd one was manually triggered. <img width="366" alt="screen shot 2019-01-13 at 9 22 38 pm" src="https://user-images.githubusercontent.com/11539188/51085942-fa0b3c00-177a-11e9-8a1b-01e197818ec7.png"> <img width="602" alt="screen shot 2019-01-13 at 9 34 29 pm" src="https://user-images.githubusercontent.com/11539188/51085963-435b8b80-177b-11e9-8d24-09357fb687a5.png"> ## **Step-2: Mark Failed for Task of Scheduled DAG Runs** I tried to click on the task `run_this_lat` of the 2nd DAG Run, which was scheduled by scheduler. <img width="597" alt="screen shot 2019-01-13 at 9 22 58 pm" src="https://user-images.githubusercontent.com/11539188/51085972-7bfb6500-177b-11e9-8287-82f3c3826b4e.png"> Then I could see the confirmation page, in which there is a list of task instances whose state will be changed. <img width="723" alt="screen shot 2019-01-13 at 9 23 10 pm" src="https://user-images.githubusercontent.com/11539188/51085979-90d7f880-177b-11e9-8fa5-4bc587e5b227.png"> Click on "Ok!", the state will be changed successfully. <img width="657" alt="screen shot 2019-01-13 at 9 25 23 pm" src="https://user-images.githubusercontent.com/11539188/51085984-a3eac880-177b-11e9-8d90-7311069230ce.png"> ## **Step-3: Mark Failed for Task of Manually-Triggered DAG Runs** Then click on the task `run_this_lat` of the 3rd DAG Run, which was **manually-triggered**. <img width="599" alt="screen shot 2019-01-13 at 9 25 29 pm" src="https://user-images.githubusercontent.com/11539188/51086000-f6c48000-177b-11e9-992d-8c6ca1a23747.png"> <img width="720" alt="screen shot 2019-01-13 at 9 25 35 pm" src="https://user-images.githubusercontent.com/11539188/51086001-ff1cbb00-177b-11e9-9a36-25556e13bc2b.png"> <img width="707" alt="screen shot 2019-01-13 at 9 25 42 pm" src="https://user-images.githubusercontent.com/11539188/51086007-080d8c80-177c-11e9-8639-9a99efff90ca.png">
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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
