Skip to content

Commit

Permalink
Revert "feat: enable speakeasy retries (#201)" (#202)
Browse files Browse the repository at this point in the history
This reverts commit caa4bb7.
  • Loading branch information
rickstaa authored Sep 13, 2024
1 parent caa4bb7 commit 5994f25
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 145 deletions.
8 changes: 1 addition & 7 deletions runner/app/routes/audio_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ def handle_pipeline_error(e: Exception) -> JSONResponse:
operation_id="genAudioToText",
summary="Audio To Text",
tags=["generate"],
openapi_extra={
"x-speakeasy-name-override": "audioToText",
"x-speakeasy-retries": {
"strategy": "backoff",
"statusCodes": ["503"],
},
},
openapi_extra={"x-speakeasy-name-override": "audioToText"},
)
@router.post(
"/audio-to-text/",
Expand Down
8 changes: 1 addition & 7 deletions runner/app/routes/image_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@
operation_id="genImageToImage",
summary="Image To Image",
tags=["generate"],
openapi_extra={
"x-speakeasy-name-override": "imageToImage",
"x-speakeasy-retries": {
"strategy": "backoff",
"statusCodes": ["503"],
},
},
openapi_extra={"x-speakeasy-name-override": "imageToImage"},
)
@router.post(
"/image-to-image/",
Expand Down
8 changes: 1 addition & 7 deletions runner/app/routes/image_to_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@
operation_id="genImageToVideo",
summary="Image To Video",
tags=["generate"],
openapi_extra={
"x-speakeasy-name-override": "imageToVideo",
"x-speakeasy-retries": {
"strategy": "backoff",
"statusCodes": ["503"],
},
},
openapi_extra={"x-speakeasy-name-override": "imageToVideo"},
)
@router.post(
"/image-to-video/",
Expand Down
8 changes: 1 addition & 7 deletions runner/app/routes/segment_anything_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@
operation_id="genSegmentAnything2",
summary="Segment Anything 2",
tags=["generate"],
openapi_extra={
"x-speakeasy-name-override": "segmentAnything2",
"x-speakeasy-retries": {
"strategy": "backoff",
"statusCodes": ["503"],
},
},
openapi_extra={"x-speakeasy-name-override": "segmentAnything2"},
)
@router.post(
"/segment-anything-2/",
Expand Down
8 changes: 1 addition & 7 deletions runner/app/routes/text_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,7 @@ class TextToImageParams(BaseModel):
operation_id="genTextToImage",
summary="Text To Image",
tags=["generate"],
openapi_extra={
"x-speakeasy-name-override": "textToImage",
"x-speakeasy-retries": {
"strategy": "backoff",
"statusCodes": ["503"],
}
}
openapi_extra={"x-speakeasy-name-override": "textToImage"},
)
@router.post(
"/text-to-image/",
Expand Down
8 changes: 1 addition & 7 deletions runner/app/routes/upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@
operation_id="genUpscale",
summary="Upscale",
tags=["generate"],
openapi_extra={
"x-speakeasy-name-override": "upscale",
"x-speakeasy-retries": {
"strategy": "backoff",
"statusCodes": ["503"],
},
},
openapi_extra={"x-speakeasy-name-override": "upscale"},
)
@router.post(
"/upscale/",
Expand Down
26 changes: 1 addition & 25 deletions runner/gateway.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.1.0
info:
title: Livepeer AI Runner
description: An application to run AI pipelines
version: v0.3.0
version: v0.2.0
servers:
- url: https://dream-gateway.livepeer.cloud
description: Livepeer Cloud Community Gateway
Expand Down Expand Up @@ -57,10 +57,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: textToImage
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/image-to-image:
post:
tags:
Expand Down Expand Up @@ -109,10 +105,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: imageToImage
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/image-to-video:
post:
tags:
Expand Down Expand Up @@ -161,10 +153,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: imageToVideo
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/upscale:
post:
tags:
Expand Down Expand Up @@ -213,10 +201,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: upscale
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/audio-to-text:
post:
tags:
Expand Down Expand Up @@ -271,10 +255,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: audioToText
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/segment-anything-2:
post:
tags:
Expand Down Expand Up @@ -323,10 +303,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: segmentAnything2
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
components:
schemas:
APIError:
Expand Down
26 changes: 1 addition & 25 deletions runner/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.1.0
info:
title: Livepeer AI Runner
description: An application to run AI pipelines
version: v0.3.0
version: v0.2.0
servers:
- url: https://dream-gateway.livepeer.cloud
description: Livepeer Cloud Community Gateway
Expand Down Expand Up @@ -68,10 +68,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: textToImage
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/image-to-image:
post:
tags:
Expand Down Expand Up @@ -120,10 +116,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: imageToImage
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/image-to-video:
post:
tags:
Expand Down Expand Up @@ -172,10 +164,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: imageToVideo
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/upscale:
post:
tags:
Expand Down Expand Up @@ -224,10 +212,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: upscale
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/audio-to-text:
post:
tags:
Expand Down Expand Up @@ -282,10 +266,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: audioToText
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
/segment-anything-2:
post:
tags:
Expand Down Expand Up @@ -334,10 +314,6 @@ paths:
security:
- HTTPBearer: []
x-speakeasy-name-override: segmentAnything2
x-speakeasy-retries:
strategy: backoff
statusCodes:
- '503'
components:
schemas:
APIError:
Expand Down
105 changes: 52 additions & 53 deletions worker/runner.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5994f25

Please sign in to comment.