Skip to content

Commit

Permalink
rename arg to 'wait'
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Mar 26, 2024
1 parent 0796219 commit ee2da5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airbyte/cloud/_workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ def delete_connection(
def run_sync(
self,
connection_id: str,
wait_for_job: bool = True,
*,
wait: bool = True,
wait_timeout: int = 300,
) -> SyncResult:
"""Run a sync on a deployed connection."""
Expand All @@ -239,7 +240,7 @@ def run_sync(
connection_id=connection_response.connection_id,
job_id=connection_response.job_id,
)
if wait_for_job:
if wait:
sync_result.wait_for_completion(
wait_timeout=wait_timeout,
raise_failure=True,
Expand Down

0 comments on commit ee2da5e

Please sign in to comment.