Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

YACHT-1124: Async copy job handle 403 errors #99

Merged
merged 2 commits into from
Dec 4, 2018

Conversation

przemyslaw-jasinski
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 3, 2018

Pull Request Test Coverage Report for Build 900

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 83.478%

Totals Coverage Status
Change from base Build 894: 0.02%
Covered Lines: 2496
Relevant Lines: 2990

💛 - Coveralls

marek-tabor
marek-tabor previously approved these changes Dec 3, 2018
Copy link
Contributor

@marek-tabor marek-tabor left a comment

Choose a reason for hiding this comment

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

👍

@@ -79,7 +79,10 @@ def __schedule(source_big_query_table, target_big_query_table, job_id,
logging.info("Successfully insert: %s", job_reference)
return job_reference
except HttpError as bq_error:
if bq_error.resp.status == 404:
if bq_error.resp.status == 403:
Copy link
Member

Choose a reason for hiding this comment

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

403 could be also quota exceeded, which should be retried

@przemyslaw-jasinski przemyslaw-jasinski merged commit c809f68 into master Dec 4, 2018
@przemyslaw-jasinski przemyslaw-jasinski deleted the YACHT-1124 branch December 4, 2018 13:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants