disable discovery cache (#5058)
This commit is contained in:
parent
24100c45e1
commit
48a34e677d
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue