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(components): Disable cache_discovery in GCP component. #5058

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DataprocClient:
""" Internal client for calling Dataproc APIs.
"""
def __init__(self):
self._dataproc = discovery.build('dataproc', 'v1')
self._dataproc = discovery.build('dataproc', 'v1', cache_discovery=False)

def create_cluster(self, project_id, region, cluster, request_id):
"""Creates a new dataproc cluster.
Expand Down Expand Up @@ -115,4 +115,4 @@ def cancel_operation(self, operation_name):

self._dataproc.projects().regions().operations().cancel(
name = operation_name
).execute()
).execute()
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MLEngineClient:
""" Client for calling MLEngine APIs.
"""
def __init__(self):
self._ml_client = discovery.build('ml', 'v1')
self._ml_client = discovery.build('ml', 'v1', cache_discovery=False)

def create_job(self, project_id, job):
"""Create a new job.
Expand Down Expand Up @@ -186,4 +186,4 @@ def cancel_operation(self, operation_name):
"""
self._ml_client.projects().operations().cancel(
name = operation_name
).execute()
).execute()