Skip to content

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Mar 21, 2023

Why making this change?

apache-airflow-providers-dbt-cloud treats the deferred execution of its operators and sensors differently, which might cause confusion. For example, DbtCloudRunJobOperator uses the deferrable parameter to toggle deferred execution while we need to use another sensor for DbtCloudJobRunSensor (i.e., DbtCloudJobRunAsyncSensor) to achieve the same thing.

What's changed?

In this pull request, I move the deferred logic from DbtCloudJobRunAsyncSensor to DbtCloudJobRunSensor so that we can keep the consistency and reduce maintenance effort. Instead of removing DbtCloudJobRunSensor, I add a deprecation warning in case there're users using it.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Lee-W Lee-W requested a review from josh-fell as a code owner March 21, 2023 23:23
@Lee-W Lee-W force-pushed the merge-async-logic-from-DbtCloudJobRunAsyncSensor-to-DbtCloudJobRunSensor branch from 11f6807 to a58bc04 Compare March 21, 2023 23:31
@Lee-W Lee-W marked this pull request as draft March 22, 2023 02:55
@Lee-W Lee-W force-pushed the merge-async-logic-from-DbtCloudJobRunAsyncSensor-to-DbtCloudJobRunSensor branch 2 times, most recently from 599ef53 to abc5998 Compare March 22, 2023 08:54
@Lee-W Lee-W force-pushed the merge-async-logic-from-DbtCloudJobRunAsyncSensor-to-DbtCloudJobRunSensor branch from abc5998 to a428e5d Compare March 22, 2023 08:55
@Lee-W Lee-W marked this pull request as ready for review March 22, 2023 14:50
@Lee-W Lee-W force-pushed the merge-async-logic-from-DbtCloudJobRunAsyncSensor-to-DbtCloudJobRunSensor branch from d5de0ca to 31044d0 Compare March 23, 2023 09:25
@Lee-W
Copy link
Member Author

Lee-W commented Mar 27, 2023

@uranusjr Does it timeout again? If so, could you please help rerun it? Thanks!

Copy link
Contributor

@josh-fell josh-fell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A much-need consolidation indeed! Just a few small comments.

Copy link
Contributor

@josh-fell josh-fell Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind including this note in a .. note:: directive? The formatting of the docs with a Note would put some emphasis around the deprecation.

Let's remove the code snippet example below too since that example shows a deprecated sensor.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure! I just update it. I'm not sure whether we can remove the code snippet. If my memory serves me right, it won't pass the CI.

@Lee-W Lee-W force-pushed the merge-async-logic-from-DbtCloudJobRunAsyncSensor-to-DbtCloudJobRunSensor branch from fdfd23b to a774320 Compare March 28, 2023 11:19
@Lee-W
Copy link
Member Author

Lee-W commented Mar 30, 2023

HI @josh-fell , I've tried to address all the comments. Could you please take a look when you have time? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants