ramitkataria commented on code in PR #77279:
URL: https://github.com/apache/airflow/pull/77279#discussion_r4633952410


##########
task-sdk/src/airflow/sdk/bases/operator.py:
##########
@@ -403,6 +403,10 @@ def partial(
             partial_kwargs["start_date"] = timezone.convert_to_utc(start_date)
         if end_date := partial_kwargs.get("end_date", None):
             partial_kwargs["end_date"] = timezone.convert_to_utc(end_date)
+        # The scheduler reads a mapped task's pool only from partial_kwargs, 
and the key being
+        # present is what makes expand(pool=...) fail as "unmappable".
+        if partial_kwargs.get("pool") is None:
+            partial_kwargs["pool"] = DEFAULT_POOL_NAME

Review Comment:
   Thanks, added



-- 
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]

Reply via email to