michaelpri10 commented on code in PR #67621:
URL: https://github.com/apache/airflow/pull/67621#discussion_r3641329772
##########
providers/google/src/airflow/providers/google/cloud/operators/pubsub.py:
##########
@@ -831,6 +841,17 @@ def __init__(
self.impersonation_chain = impersonation_chain
self.deferrable = deferrable
self.poll_interval = poll_interval
+ if return_immediately is not None:
+ warnings.warn(
+ "The `return_immediately` parameter is deprecated and will be
removed in a future release. "
+ "Its default value will be changed to `False` in the next
major release. "
+ "Planned removal date: August 01, 2026.",
Review Comment:
I've updated the deprecation warning to just state that the default value of
`return_immediately` will be set to `False` in a future major release.
--
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]