ephraimbuddy commented on code in PR #30271:
URL: https://github.com/apache/airflow/pull/30271#discussion_r1147402414


##########
airflow/models/dag.py:
##########
@@ -2207,6 +2207,9 @@ def partial_subset(
                 also_include.extend(t.get_flat_relatives(upstream=False))
             if include_upstream:
                 also_include.extend(t.get_flat_relatives(upstream=True))
+            else:
+                upstream_setup_tasks = t.get_flat_relatives(upstream=True, 
setup_only=True)
+                also_include.extend(upstream_setup_tasks)

Review Comment:
   From the AIP, clearing a work task automatically clears the task's 
setup/teardown tasks. If so, I think it won't work here due to the 'else' 
statement?



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to