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

Honour OPENLINEAGE_DISABLED env var #622

Closed

Conversation

ivanstillfront
Copy link
Contributor

Description

This allows dbt tasks to succeed successfully when lineage has been disabled by honouring the OPENLINEAGE_DISABLED environment variable that Airflow uses.

Related Issue(s)

This does not resolve, but is related to #612. It allows us to run dbt tasks without having errors described in the issue.

Breaking Change?

This should not break anything.

Checklist

  • I have made corresponding changes to the documentation (if required)
  • I have added tests that prove my fix is effective or that my feature works

@ivanstillfront ivanstillfront requested a review from a team as a code owner October 23, 2023 20:09
@ivanstillfront ivanstillfront requested a review from a team October 23, 2023 20:09
@netlify
Copy link

netlify bot commented Oct 23, 2023

👷 Deploy Preview for amazing-pothos-a3bca0 processing.

Name Link
🔨 Latest commit 8d937f9
🔍 Latest deploy log https://app.netlify.com/sites/amazing-pothos-a3bca0/deploys/6536d2ecc6ff970008f1250a

@@ -227,7 +231,7 @@ def run_command(
output_encoding=self.output_encoding,
cwd=tmp_project_dir,
)
if is_openlineage_available:
if is_openlineage_enabled:
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ivanstillfront Thanks for looking into this!

I'm not convinced about this change since this line aims to set Airflow inlets and outlets - unrelated to emitting open lineage events - but to support Airflow Data Aware scheduling.

This is being improved, but it will likely only be available in Cosmos 1.3 or 1.4.

Does the following comment address your original issue?
#612 (comment)

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1bf3a3e) 93.32% compared to head (8d937f9) 93.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #622   +/-   ##
=======================================
  Coverage   93.32%   93.33%           
=======================================
  Files          54       54           
  Lines        2128     2129    +1     
=======================================
+ Hits         1986     1987    +1     
  Misses        142      142           
Files Coverage Δ
cosmos/operators/local.py 90.93% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatiana tatiana added this to the 1.2.1 milestone Oct 26, 2023
@tatiana
Copy link
Collaborator

tatiana commented Oct 26, 2023

@ivanstillfront The original issue you were facing in #612 should have been fixed as part of this release:
https://pypi.org/project/astronomer-cosmos/1.2.1/
https://github.com/astronomer/astronomer-cosmos/releases/tag/astronomer-cosmos-v1.2.1

@tatiana tatiana closed this Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants