jmcarp commented on a change in pull request #6379: [AIRFLOW-5708] Optionally
check task pools when parsing dags.
URL: https://github.com/apache/airflow/pull/6379#discussion_r399025433
##########
File path: airflow/models/dag.py
##########
@@ -1678,6 +1679,17 @@ def _test_cycle_helper(self, visit_map, task_id):
visit_map[task_id] = DagBag.CYCLE_DONE
+ @provide_session
+ def test_pools(self, available_pools=None, session=None):
+ requested_pools = {task.pool for task in self.task_dict.values() if
task.pool}
Review comment:
Sure, I moved this to a helper function.
----------------------------------------------------------------
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]
With regards,
Apache Git Services