Skip to content

Commit

Permalink
Reducing prod retry cadence
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Chiao <danny@tecton.ai>
  • Loading branch information
adchia committed Sep 2, 2021
1 parent c409b2a commit befea85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/feast/infra/offline_stores/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def block_until_done(
client: Client,
bq_job: Union[bigquery.job.query.QueryJob, bigquery.job.load.LoadJob],
timeout: int = 1800,
retry_cadence: int = 10,
retry_cadence: float = 1,
):
"""
Waits for bq_job to finish running, up to a maximum amount of time specified by the timeout parameter (defaulting to 30 minutes).
Expand All @@ -226,7 +226,7 @@ def block_until_done(
# For test environments, retry more aggressively
is_test = os.getenv("IS_TEST", default="False") == "True"
if is_test:
retry_cadence = 1
retry_cadence = 0.1

def _wait_until_done(job_id):
if client.get_job(job_id).state in ["PENDING", "RUNNING"]:
Expand Down

0 comments on commit befea85

Please sign in to comment.