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

Commit

Permalink
YACHT-584: Fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslaw-jasinski committed Jul 12, 2018
1 parent 46d5f07 commit bf60986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ def export(self, gcs_output_url, kinds):
return self.__is_finished_with_success(response)

def __is_finished_with_success(self, response):
operation_id = response["name"]
finish_time = time.time() + TIMEOUT
self.__wait_till_done(operation_id)
self.__wait_till_done(response["name"])

if time.time() < finish_time:
if time.time() > finish_time:
ErrorReporting().report(
"Timeout (%d seconds) exceeded !!!" % TIMEOUT)
return False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __is_finished_with_success(self, load_job_id):
finish_time = time.time() + TIMEOUT
self.__wait_till_done(load_job_id)

if time.time() < finish_time:
if time.time() > finish_time:
ErrorReporting().report(
"Timeout (%d seconds) exceeded !!!" % TIMEOUT)
return False
Expand Down

0 comments on commit bf60986

Please sign in to comment.