feluelle commented on a change in pull request #6352: [AIRFLOW-5683] Add
propagate_skipped_state to SubDagOperator
URL: https://github.com/apache/airflow/pull/6352#discussion_r341128146
##########
File path: tests/operators/test_subdag_operator.py
##########
@@ -237,3 +240,65 @@ def test_rerun_failed_subdag(self):
sub_dagrun.refresh_from_db()
self.assertEqual(sub_dagrun.state, State.RUNNING)
+
+ @parameterized.expand([
+ (SkippedStatePropagationOptions.ALL_LEAVES, [State.SKIPPED,
State.SKIPPED], True),
+ (SkippedStatePropagationOptions.ALL_LEAVES, [State.SKIPPED,
State.SUCCESS], False),
+ (SkippedStatePropagationOptions.ANY_LEAF, [State.SKIPPED,
State.SUCCESS], True),
+ (SkippedStatePropagationOptions.ANY_LEAF, [State.FAILED,
State.SKIPPED], True),
Review comment:
Failed dag_run's are covered here
https://github.com/apache/airflow/pull/6352/files#diff-110fdb12f5df15ebf205dca824886e3aR172-R189
----------------------------------------------------------------
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