ferruzzi commented on a change in pull request #20369:
URL: https://github.com/apache/airflow/pull/20369#discussion_r778387027
##########
File path: airflow/providers/amazon/aws/hooks/batch_client.py
##########
@@ -538,3 +538,35 @@ def exp(tries):
delay = 1 + pow(tries * 0.6, 2)
delay = min(max_interval, delay)
return uniform(delay / 3, delay)
+
+
+class AwsBatchProtocol(BatchProtocol, Protocol):
+ """
+ This class is deprecated.
+ Please use :class:`airflow.providers.amazon.aws.hooks.batch.BatchProtocol`.
+ """
+
+ def __init__(self, *args, **kwargs):
+ warnings.warn(
+ "This class is deprecated. "
+ "Please use
:class:`airflow.providers.amazon.aws.hooks.batch.BatchProtocol`.",
+ DeprecationWarning,
+ stacklevel=2,
+ )
+ super().__init__(*args, **kwargs)
Review comment:
That is correct, based on the other one now working I'll be doing this
next. I'm not sure why that was giving me an error before, but it seems clear
now. /shrug
--
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]