Skip to content

Conversation

@kacpermuda
Copy link
Contributor

Fixed how OL compares task's state in Snowflake provider due to differences between airflow.utils.state.TaskInstanceState used in Airflow 2 and airflow.sdk.api.datamodels._generated.TaskInstanceState used in Airflow 3.
For str(task_instance.state) the non-sdk returns success, but the SDK one returns TaskInstanceState.SUCCESS. As they are both Enums, we will use .value from now.


^ 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 airflow-core/newsfragments.

@kacpermuda kacpermuda requested review from mik-laj and potiuk as code owners May 9, 2025 06:52
@boring-cyborg boring-cyborg bot added area:providers provider:snowflake Issues related to Snowflake provider labels May 9, 2025
@mobuchowski mobuchowski merged commit 3284b8d into apache:main May 9, 2025
66 checks passed
@kacpermuda kacpermuda deleted the fix-ol-snowflake-task-state branch May 9, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:snowflake Issues related to Snowflake provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants