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 2020/01/14 16:19:47 UTC

[GitHub] [airflow] lokeshlal commented on a change in pull request #7160: [AIRFLOW-1467] Dynamic pooling via allowing tasks to use more than one pool slot (depending upon the need)

lokeshlal commented on a change in pull request #7160: [AIRFLOW-1467] Dynamic pooling via allowing tasks to use more than one pool slot (depending upon the need)
URL: https://github.com/apache/airflow/pull/7160#discussion_r366435007
 
 

 ##########
 File path: airflow/models/taskinstance.py
 ##########
 @@ -194,6 +195,11 @@ def __init__(self, task, execution_date, state=None):
 
         self.queue = task.queue
         self.pool = task.pool
+        if hasattr(task, 'pool_capacity'):
+            self.pool_capacity = task.pool_capacity
+            if task.pool_capacity < 1:
 
 Review comment:
   moved the check to baseoperator

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services