Skip to content

Commit

Permalink
docs(samples): fix timeout for LROs; first call can take up to 10 min…
Browse files Browse the repository at this point in the history
…utes (#82)

Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
2 people authored and dizcology committed Sep 15, 2023
1 parent 287fff2 commit c979dc8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion video/live-stream/create_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def create_channel(
operation = client.create_channel(
parent=parent, channel=channel, channel_id=channel_id
)
response = operation.result(60)
response = operation.result(600)
print(f"Channel: {response.name}")

return response
Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/create_channel_with_backup_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def create_channel_with_backup_input(
operation = client.create_channel(
parent=parent, channel=channel, channel_id=channel_id
)
response = operation.result(60)
response = operation.result(600)
print(f"Channel: {response.name}")

return response
Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/create_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def create_input(project_id: str, location: str, input_id: str) -> str:
type_="RTMP_PUSH",
)
operation = client.create_input(parent=parent, input=input, input_id=input_id)
response = operation.result(60)
response = operation.result(600)
print(f"Input: {response.name}")

return response
Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/delete_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def delete_channel(project_id: str, location: str, channel_id: str) -> None:

name = f"projects/{project_id}/locations/{location}/channels/{channel_id}"
operation = client.delete_channel(name=name)
operation.result(60)
operation.result(600)
print("Deleted channel")


Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/delete_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def delete_input(project_id: str, location: str, input_id: str) -> None:

name = f"projects/{project_id}/locations/{location}/inputs/{input_id}"
operation = client.delete_input(name=name)
operation.result(60)
operation.result(600)
print("Deleted input")


Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/start_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def start_channel(project_id: str, location: str, channel_id: str) -> None:

name = f"projects/{project_id}/locations/{location}/channels/{channel_id}"
operation = client.start_channel(name=name)
operation.result(60)
operation.result(600)
print("Started channel")


Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/stop_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def stop_channel(project_id: str, location: str, channel_id: str) -> None:

name = f"projects/{project_id}/locations/{location}/channels/{channel_id}"
operation = client.stop_channel(name=name)
operation.result(60)
operation.result(600)
print("Stopped channel")


Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/update_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def update_channel(
update_mask = field_mask.FieldMask(paths=["input_attachments"])

operation = client.update_channel(channel=channel, update_mask=update_mask)
response = operation.result(60)
response = operation.result(600)
print(f"Updated channel: {response.name}")

return response
Expand Down
2 changes: 1 addition & 1 deletion video/live-stream/update_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def update_input(project_id: str, location: str, input_id: str) -> str:
update_mask = field_mask.FieldMask(paths=["preprocessing_config"])

operation = client.update_input(input=input, update_mask=update_mask)
response = operation.result(60)
response = operation.result(600)
print(f"Updated input: {response.name}")

return response
Expand Down

0 comments on commit c979dc8

Please sign in to comment.