josh-fell commented on code in PR #30252:
URL: https://github.com/apache/airflow/pull/30252#discussion_r1173761280
##########
airflow/providers/microsoft/azure/sensors/wasb.py:
##########
@@ -158,3 +158,71 @@ def poke(self, context: Context) -> bool:
self.log.info("Poking for prefix: %s in wasb://%s", self.prefix,
self.container_name)
hook = WasbHook(wasb_conn_id=self.wasb_conn_id)
return hook.check_for_prefix(self.container_name, self.prefix,
**self.check_options)
+
+
+class WasbPrefixAsyncSensor(WasbPrefixSensor):
+ """
+ Polls asynchronously for the existence of a blob having the given prefix
in a WASB container.
+
+ :param container_name: name of the container in which the blob should be
searched for
+ :param blob_name: name of the blob to check existence for
+ :param include: specifies one or more additional datasets to include in the
+ response. Options include: ``snapshots``, ``metadata``,
``uncommittedblobs``,
+ ``copy`, ``deleted``
+ :param delimiter: filters objects based on the delimiter (for e.g '.csv')
+ :param wasb_conn_id: the connection identifier for connecting to Azure WASB
+ :param poll_interval: polling period in seconds to check for the status
Review Comment:
Weird. I thought I deleted that old pending comment. My fault.
--
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]