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


##########
task-sdk/tests/task_sdk/execution_time/test_task_runner.py:
##########
@@ -2179,6 +2179,53 @@ def __init__(self, bash_command, *args, **kwargs):
             msg=SetRenderedFields(rendered_fields={"bash_command": 
rendered_cmd})
         )
 
+    def test_overwrite_rtif_after_execution_handles_errors_gracefully(
+        self, create_runtime_ti, mock_supervisor_comms
+    ):
+        """
+        Test that errors during SetRenderedFields in finalize() don't mask the 
original task error.
+        """
+        from airflow.sdk.exceptions import AirflowRuntimeError
+        from airflow.sdk.execution_time.comms import ErrorResponse, ErrorType

Review Comment:
   Oh, its already present at top level, my IDE does this strangely when I 
hover over missing imports.
   
   Let me fix that



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