vincbeck commented on code in PR #48904:
URL: https://github.com/apache/airflow/pull/48904#discussion_r2033797079


##########
providers/amazon/src/airflow/providers/amazon/aws/hooks/glue.py:
##########
@@ -154,6 +154,15 @@ def list_jobs(self) -> list:
         """
         return self.conn.get_jobs()
 
+    def list_jobs(self) -> list:
+        """
+        Get list of Jobs.
+
+        .. deprecated::
+            - Use :meth:`describe_jobs` instead.
+        """
+        return self.describe_jobs()

Review Comment:
   ```suggestion
           warnings.warn(
               "The method `list_jobs` is deprecated. Use the method 
`describe_jobs` instead.",
               AirflowProviderDeprecationWarning,
               stacklevel=2,
           )
           return self.describe_jobs()
   ```



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