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


##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -371,6 +371,135 @@ def hash(cls, dag_data):
         data_json = json.dumps(data_, sort_keys=True).encode("utf-8")
         return md5(data_json).hexdigest()
 
+    # Fields to exclude from minimal version hash (noise/config that changes 
frequently
+    # but doesn't affect task behavior or require a new version)
+    _EXCLUDED_TASK_FIELDS: set[str] = {
+        # Display/documentation
+        "ui_color",
+        "ui_fgcolor",
+        "doc",
+        "doc_md",
+        "doc_json",
+        "doc_yaml",
+        "doc_rst",
+        # Scheduling
+        "start_date",
+        "end_date",
+        # Template metadata (not actual values)
+        "template_fields",
+        "template_ext",
+        "template_fields_renderers",
+        # Other metadata
+        "render_template_as_native_obj",
+    }
+
+    _EXCLUDED_DAG_FIELDS: set[str] = {
+        # Display/documentation
+        "description",
+        "doc_md",
+        # Scheduling
+        "start_date",
+        "end_date",

Review Comment:
   ```suggestion
   ```



##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -371,6 +371,135 @@ def hash(cls, dag_data):
         data_json = json.dumps(data_, sort_keys=True).encode("utf-8")
         return md5(data_json).hexdigest()
 
+    # Fields to exclude from minimal version hash (noise/config that changes 
frequently
+    # but doesn't affect task behavior or require a new version)
+    _EXCLUDED_TASK_FIELDS: set[str] = {
+        # Display/documentation
+        "ui_color",
+        "ui_fgcolor",
+        "doc",
+        "doc_md",
+        "doc_json",
+        "doc_yaml",
+        "doc_rst",
+        # Scheduling
+        "start_date",
+        "end_date",

Review Comment:
   ```suggestion
   ```



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