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


##########
airflow/serialization/helpers.py:
##########
@@ -38,7 +39,19 @@ def is_jsonable(x):
         else:
             return True
 
+    max_size = conf.getint("core", "max_templated_field_size")
     if not is_jsonable(template_field):
-        return str(template_field)
+        serialized = str(template_field)
+        if len(serialized) > max_size:
+            return (
+                "Value removed due to size. "

Review Comment:
   My concern was the information about how to configure the size. Would it 
make sense to have a truncated data alongside the info about how to increase 
the config value?



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