Skip to content

fix: show logs when TFX pipelines are submitted#976

Merged
sararob merged 7 commits intogoogleapis:mainfrom
sararob:sara-tfx-logs
Feb 14, 2022
Merged

fix: show logs when TFX pipelines are submitted#976
sararob merged 7 commits intogoogleapis:mainfrom
sararob:sara-tfx-logs

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.

@sararob sararob requested a review from sasha-gitg January 25, 2022 20:11
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