Skip to content

Commit

Permalink
docs(samples): fix timeout for create input and start channel LROs; f…
Browse files Browse the repository at this point in the history
…irst call can take up to 15 minutes (#86)
  • Loading branch information
irataxy authored Jul 29, 2022
1 parent 0c4b0ba commit 6ef2fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion video/livestream/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(600)
response = operation.result(900)
print(f"Input: {response.name}")

return response
Expand Down
2 changes: 1 addition & 1 deletion video/livestream/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(600)
operation.result(900)
print("Started channel")


Expand Down

0 comments on commit 6ef2fb2

Please sign in to comment.