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

feat(airflow) Override datajob external_url #274

Closed
wants to merge 2 commits into from
Closed

feat(airflow) Override datajob external_url #274

wants to merge 2 commits into from

Conversation

gp1105739
Copy link

@gp1105739 gp1105739 commented Jan 5, 2024

The current url link may not be that useful for the two reasons following, which is why this pr is brought up.

  • taskinstance page always times out for us due to the huge amount of DAGs we have.
  • taskinstance page is less informative compared to DAG page

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@hsheth2
Copy link
Collaborator

hsheth2 commented Jan 9, 2024

@gp1105739 I'm trying to understand what override_datajob_url might get set to - looks like it's supposed to be a template URL?

@gp1105739
Copy link
Author

gp1105739 commented Jan 9, 2024

@gp1105739 I'm trying to understand what override_datajob_url might get set to - looks like it's supposed to be a template URL?

@hsheth2 Sure, it can be something similar to {base_url}/dags/{dag_id}/grid?task_id={task_id}. It will be much flexible than what we have now

Copy link
Collaborator

@hsheth2 hsheth2 left a comment

Choose a reason for hiding this comment

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

Could you open this PR against https://github.com/datahub-project/datahub instead of this repo?

@@ -41,6 +41,9 @@ class DatahubLineageConfig(ConfigModel):
# The Airflow plugin behaves as if it were set to True.
graceful_exceptions: bool = True

# Override the external urls of datajob.
override_datajob_url: str = None

def make_emitter_hook(self) -> "DatahubGenericHook":
Copy link
Collaborator

Choose a reason for hiding this comment

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

configs also need to be added to get_lineage_config below, and also added to the docs

@gp1105739 gp1105739 closed this by deleting the head repository Jan 21, 2024
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.

2 participants