josh-fell commented on code in PR #29695:
URL: https://github.com/apache/airflow/pull/29695#discussion_r1114587026
##########
airflow/providers/dbt/cloud/sensors/dbt.py:
##########
@@ -64,3 +72,56 @@ def poke(self, context: Context) -> bool:
raise DbtCloudJobRunException(f"Job run {self.run_id} has been
cancelled.")
return job_run_status == DbtCloudJobRunStatus.SUCCESS.value
+
+
+class DbtCloudJobRunAsyncSensor(DbtCloudJobRunSensor):
+ """
+ Checks the status of a dbt Cloud job run asynchronously.
+
+ .. seealso::
+ For more information on sync Sensor DbtCloudJobRunAsyncSensor, take a
look at the guide::
+ :ref:`howto/operator:DbtCloudJobRunAsyncSensor`
+
+ :param dbt_cloud_conn_id: The connection identifier for connecting to dbt
Cloud.
+ :param run_id: The job run identifier.
+ :param account_id: The dbt Cloud account identifier.
+ :param timeout: Time in seconds to wait for a job run to reach a terminal
status. Defaults to 7 days.
+ """
+
+ def __init__(
+ self,
+ *,
+ poll_interval: float = 5,
Review Comment:
Would mind adding this param to the docstring as well?
--
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]