mikaelfr commented on a change in pull request #9204:
URL: https://github.com/apache/airflow/pull/9204#discussion_r442276792
##########
File path: airflow/models/taskinstance.py
##########
@@ -501,6 +524,13 @@ def refresh_from_task(self, task, pool_override=None):
self.max_tries = task.retries
self.executor_config = task.executor_config
self.operator = task.__class__.__name__
+ # Mocks tags attribute is not iterable
+ if isinstance(task.task_tags, coll.Iterable):
+ for tag in task.task_tags:
+ self.task_tags.append(
+ TaskTag(name=tag, dag_id=self.dag_id,
+ task_id=self.task_id,
execution_date=self.execution_date)
+ )
Review comment:
Apparently it does. Fixed in 9e683c4
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]