uranusjr commented on code in PR #30014:
URL: https://github.com/apache/airflow/pull/30014#discussion_r1141982376
##########
docs/apache-airflow-providers-google/operators/cloud/gcs.rst:
##########
@@ -164,14 +164,20 @@ Use the
:class:`~airflow.providers.google.cloud.sensors.gcs.GCSObjectExistenceSe
:start-after: [START howto_sensor_object_exists_task]
:end-before: [END howto_sensor_object_exists_task]
+Also you can use deferrable mode in this operator if you would like to free up
the worker slots while the sensor is running.
+
+.. exampleinclude::
/../../tests/system/providers/google/cloud/gcs/example_gcs_sensor.py
+ :language: python
+ :dedent: 4
+ :start-after: [START howto_sensor_object_exists_task_defered]
+ :end-before: [END howto_sensor_object_exists_task_defered]
.. _howto/sensor:GCSObjectExistenceAsyncSensor:
GCSObjectExistenceAsyncSensor
-----------------------------
-Use the
:class:`~airflow.providers.google.cloud.sensors.gcs.GCSObjectExistenceAsyncSensor`
-(deferrable version) if you would like to free up the worker slots while the
sensor is running.
+:class:`~airflow.providers.google.cloud.sensors.gcs.GCSObjectExistenceAsyncSensor`
is deprecated and will be removed in a future release. Please use
:class:`~airflow.providers.google.cloud.sensors.gcs.GCSObjectExistenceSensor`
and use the deferrable mode in that operator.
Review Comment:
I don’t recall our deprecation strategy around providers; should the
documentation simply be removed?
--
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]