utkarsharma2 commented on code in PR #31852:
URL: https://github.com/apache/airflow/pull/31852#discussion_r1233504384
##########
airflow/models/taskinstance.py:
##########
@@ -886,6 +889,7 @@ def refresh_from_task(self, task: Operator, pool_override:
str | None = None) ->
# value that needs to be stored in the db.
self.executor_config = task.executor_config
self.operator = task.task_type
+ self.custom_operator_name = task.operator_name
Review Comment:
@uranusjr As per your suggestion now I have added a property `operator_name`
in the task_instance model, which will take care of the NULL case.
Now, we are populating ti's `cutom_operator_name` with operator's
`cutom_operator_name`. Then in `operator_name` we are falling back to ti's
operator if `cutom_operator_name` is NULL.
--
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]