jscheffl commented on code in PR #59999:
URL: https://github.com/apache/airflow/pull/59999#discussion_r2656389973


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -896,13 +892,13 @@ def sort_dict_recursively(obj: Any) -> Any:
     serialized = str(template_field)
     if len(serialized) > max_length:
         rendered = redact(serialized, name)
-        return (
-            "Truncated. You can change this behaviour in 
[core]max_templated_field_length. "
-            f"{rendered[: max_length - 79]!r}... "
-        )
+        return truncate_rendered_value(rendered, max_length)
     return template_field
 
 
+
+
+

Review Comment:
   Can you clean the additional empty lines as well?



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