Skip to content

Commit

Permalink
Retry DEADLINE_EXCEEDED, change input_uri for sample video (via synth…
Browse files Browse the repository at this point in the history
…). (#7944)
  • Loading branch information
yoshi-automation authored and busunkim96 committed May 14, 2019
1 parent 5c47189 commit d03a8bc
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 13 deletions.
Expand Up @@ -196,7 +196,7 @@ def annotate_video(
>>>
>>> client = videointelligence_v1.VideoIntelligenceServiceClient()
>>>
>>> input_uri = 'gs://videodemomaker/cat.mp4'
>>> input_uri = 'gs://cloud-samples-data/video/cat.mp4'
>>> features_element = enums.Feature.LABEL_DETECTION
>>> features = [features_element]
>>>
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1.VideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 1000,
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1beta1.VideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 1000,
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1beta2.VideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 1000,
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 1000,
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 1000,
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 100,
Expand Down
@@ -1,7 +1,10 @@
config = {
"interfaces": {
"google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService": {
"retry_codes": {"idempotent": ["UNAVAILABLE"], "non_idempotent": []},
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 1000,
Expand Down
6 changes: 3 additions & 3 deletions videointelligence/synth.metadata
@@ -1,5 +1,5 @@
{
"updateTime": "2019-05-08T12:28:39.063112Z",
"updateTime": "2019-05-10T12:44:24.157372Z",
"sources": [
{
"generator": {
Expand All @@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "51145ff7812d2bb44c1219d0b76dac92a8bd94b2",
"internalRef": "247143125"
"sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a",
"internalRef": "247530843"
}
},
{
Expand Down
Expand Up @@ -82,7 +82,7 @@ def test_annotate_video(self):
client = videointelligence_v1.VideoIntelligenceServiceClient()

# Setup Request
input_uri = "gs://videodemomaker/cat.mp4"
input_uri = "gs://cloud-samples-data/video/cat.mp4"
features_element = enums.Feature.LABEL_DETECTION
features = [features_element]

Expand Down Expand Up @@ -113,7 +113,7 @@ def test_annotate_video_exception(self):
client = videointelligence_v1.VideoIntelligenceServiceClient()

# Setup Request
input_uri = "gs://videodemomaker/cat.mp4"
input_uri = "gs://cloud-samples-data/video/cat.mp4"
features_element = enums.Feature.LABEL_DETECTION
features = [features_element]

Expand Down

0 comments on commit d03a8bc

Please sign in to comment.