amoghrajesh commented on code in PR #54774:
URL: https://github.com/apache/airflow/pull/54774#discussion_r2291149757


##########
airflow-core/src/airflow/ti_deps/deps/trigger_rule_dep.py:
##########
@@ -617,14 +617,17 @@ def _evaluate_direct_relatives() -> Iterator[TIDepStatus]:
                 elif success == 0:
                     yield self._failing_status(
                         reason=(
-                            f"Task's trigger rule '{trigger_rule}' requires 
all non-skipped upstream tasks to have "
+                            f"Task's trigger rule '{trigger_rule.value}' 
requires all non-skipped upstream tasks to have "
                             f"completed and at least one upstream task has 
succeeded, but found "
                             f"{success} successful task(s). 
upstream_states={upstream_states}, "
                             f"upstream_task_ids={task.upstream_task_ids}"
                         )
                     )
             else:
-                yield self._failing_status(reason=f"No strategy to evaluate 
trigger rule '{trigger_rule}'.")
+                print("true rule not implemented:", trigger_rule)
+                yield self._failing_status(
+                    reason=f"No strategy to evaluate trigger rule 
'{getattr(trigger_rule, 'value', trigger_rule)}'."

Review Comment:
   > What if you change the generation to have the use-subclass-enum option?
   I think that will make it subclass string and not need this?
   
   Let me try



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