uranusjr commented on code in PR #71346:
URL: https://github.com/apache/airflow/pull/71346#discussion_r3744902709
##########
task-sdk/src/airflow/sdk/definitions/callback.py:
##########
@@ -151,16 +151,31 @@ class AsyncCallback(Callback):
triggerer.
It will be called with Airflow context and specified kwargs when a
deadline is missed.
+
+ Pass ``queue`` to assign the resulting trigger to a specific triggerer
queue (see
+ :ref:`config:triggerer__queues_enabled` and the ``--queues`` option of
``airflow triggerer``).
"""
- def __init__(self, callback_callable: Callable | str, kwargs: dict | None
= None):
+ queue: str | None
+
+ def __init__(
+ self,
+ callback_callable: Callable | str,
+ kwargs: dict | None = None,
+ queue: str | None = None,
+ ):
Review Comment:
Let’s make the new argument keyword-only. (I would suggest others to be
changed as well, but that brings unnecessary compatibility issues.)
--
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]