Skip to content

Commit c979dc8

Browse files
irataxyparthea
authored andcommitted
docs(samples): fix timeout for LROs; first call can take up to 10 minutes (#82)
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 287fff2 commit c979dc8

9 files changed

+9
-9
lines changed

video/live-stream/create_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def create_channel(
111111
operation = client.create_channel(
112112
parent=parent, channel=channel, channel_id=channel_id
113113
)
114-
response = operation.result(60)
114+
response = operation.result(600)
115115
print(f"Channel: {response.name}")
116116

117117
return response

video/live-stream/create_channel_with_backup_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def create_channel_with_backup_input(
132132
operation = client.create_channel(
133133
parent=parent, channel=channel, channel_id=channel_id
134134
)
135-
response = operation.result(60)
135+
response = operation.result(600)
136136
print(f"Channel: {response.name}")
137137

138138
return response

video/live-stream/create_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create_input(project_id: str, location: str, input_id: str) -> str:
4545
type_="RTMP_PUSH",
4646
)
4747
operation = client.create_input(parent=parent, input=input, input_id=input_id)
48-
response = operation.result(60)
48+
response = operation.result(600)
4949
print(f"Input: {response.name}")
5050

5151
return response

video/live-stream/delete_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def delete_channel(project_id: str, location: str, channel_id: str) -> None:
3939

4040
name = f"projects/{project_id}/locations/{location}/channels/{channel_id}"
4141
operation = client.delete_channel(name=name)
42-
operation.result(60)
42+
operation.result(600)
4343
print("Deleted channel")
4444

4545

video/live-stream/delete_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def delete_input(project_id: str, location: str, input_id: str) -> None:
3939

4040
name = f"projects/{project_id}/locations/{location}/inputs/{input_id}"
4141
operation = client.delete_input(name=name)
42-
operation.result(60)
42+
operation.result(600)
4343
print("Deleted input")
4444

4545

video/live-stream/start_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def start_channel(project_id: str, location: str, channel_id: str) -> None:
3939

4040
name = f"projects/{project_id}/locations/{location}/channels/{channel_id}"
4141
operation = client.start_channel(name=name)
42-
operation.result(60)
42+
operation.result(600)
4343
print("Started channel")
4444

4545

video/live-stream/stop_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def stop_channel(project_id: str, location: str, channel_id: str) -> None:
3939

4040
name = f"projects/{project_id}/locations/{location}/channels/{channel_id}"
4141
operation = client.stop_channel(name=name)
42-
operation.result(60)
42+
operation.result(600)
4343
print("Stopped channel")
4444

4545

video/live-stream/update_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def update_channel(
5757
update_mask = field_mask.FieldMask(paths=["input_attachments"])
5858

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

6363
return response

video/live-stream/update_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def update_input(project_id: str, location: str, input_id: str) -> str:
5454
update_mask = field_mask.FieldMask(paths=["preprocessing_config"])
5555

5656
operation = client.update_input(input=input, update_mask=update_mask)
57-
response = operation.result(60)
57+
response = operation.result(600)
5858
print(f"Updated input: {response.name}")
5959

6060
return response

0 commit comments

Comments
 (0)