uranusjr commented on code in PR #49809:
URL: https://github.com/apache/airflow/pull/49809#discussion_r2072832143


##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -983,21 +987,26 @@ def _handle_request(self, msg: ToSupervisor, log: 
FilteringBoundLogger):
         if isinstance(msg, TaskState):
             self._terminal_state = msg.state
             self._task_end_time_monotonic = time.monotonic()
+            self._rendered_map_index = getattr(msg, "rendered_map_index", None)

Review Comment:
   If there’s an unexpected case, it should be treated as a bug and emit an 
error loudly. I don’t think this getattr is wise.



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