Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sensor to proper dag #22

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

siklosid
Copy link
Member

Jira Ticket: DATA=1500

Sensor was not giving slack alert when failed.
Root Cause: When sensor operator was created the dag object was not passed into the operator as a parameter, hence the default arguments (which contains what to do on failure) were also not passed into the sensor operator.

This fix is adding the dag object into the sensor operator on creation time, making sure that all default arguments, like the on_failure_callback function is also passed in.

tested in tst environment

@siklosid siklosid requested a review from a team as a code owner July 16, 2023 12:19
@claudiazi
Copy link

LGTM! thaaanks!
I will upgrade the dagger version in airflow repo with my fix in another PR together.

@siklosid siklosid merged commit 63a3188 into master Jul 17, 2023
1 check passed
@siklosid siklosid deleted the fix/DATA-1500_sensor_not_raising_alert branch July 17, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants