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

fix: show logs when TFX pipelines are submitted #976

Merged
merged 7 commits into from
Feb 14, 2022

Conversation

sararob
Copy link
Contributor

@sararob sararob commented Jan 25, 2022

Fixes an issue where calling PipelineJob.submit() with TFX pipelines didn't show any logs. This was happening because when tfx.v1 is imported, the log level gets set to WARNING. I added a check for TFX pipelines and reset the log level to INFO.

Fixes b/209602615.

@@ -273,6 +274,10 @@ def submit(
if network:
self._gca_resource.network = network

# Prevents logs from being supressed on TFX pipelines
if self._gca_resource.pipeline_spec["sdkVersion"].startswith("tfx"):
Copy link
Member

Choose a reason for hiding this comment

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

@morgandu morgandu requested a review from ji-yaqi February 9, 2022 19:18
@sararob sararob merged commit c10923b into googleapis:main Feb 14, 2022
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.

3 participants