You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/17 14:33:15 UTC

[GitHub] [airflow] potiuk edited a comment on issue #12309: TaskGroup does not support dynamically generated tasks

potiuk edited a comment on issue #12309:
URL: https://github.com/apache/airflow/issues/12309#issuecomment-1043012172


   I believe it's just wrong way of using decorated tasks. 
   
   But the issue is that you are adding the same issue again with the same taks_id. You should change task_id when you are adding tasks mutiple times. This problem is not fixable IMHO because of the way how decorators work - the function for the resulting task will always have the same id and (as far as I know how decorarots work) this cannot be changed. 
   
   If you want to have a loop of tasks added use PythonOperator and use your function as callable. 
   
   Unless someone objects and tells that this can be solved differently i consider this one closed.
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org