jedcunningham commented on code in PR #38094:
URL: https://github.com/apache/airflow/pull/38094#discussion_r1535918174


##########
airflow/serialization/helpers.py:
##########
@@ -38,6 +39,13 @@ def is_jsonable(x):
         else:
             return True
 
+    max_length = conf.getint("core", "max_templated_field_length")
+
+    if template_field and len(str(template_field)) > max_length:
+        return (
+            f"{str(template_field)[:max_length-79]}... truncated. "
+            "You can change this behaviour in [core]max_templated_field_length"

Review Comment:
   Let's do this as a prefix instead. It's more obvious if its at the beginning.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to