Skip to content

Commit

Permalink
fix: retry AppActionCall for up to 30s (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdalton committed Nov 17, 2023
1 parent 3663b13 commit 9006e5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/REST/endpoints/app-action-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getCallDetails: RestEndpoint<'AppActionCall', 'getCallDetails'> = (
}

const APP_ACTION_CALL_RETRY_INTERVAL = 2000
const APP_ACTION_CALL_RETRIES = 10
const APP_ACTION_CALL_RETRIES = 15

async function callAppActionResult(
http: AxiosInstance,
Expand Down
6 changes: 3 additions & 3 deletions test/unit/adapters/REST/endpoints/app-action-call-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Rest App Action Call', () => {
httpMock.get.withArgs(
`/spaces/space-id/environments/environment-id/actions/app-action-id/calls/call-id`
),
10
15
)
})

Expand Down Expand Up @@ -142,7 +142,7 @@ describe('Rest App Action Call', () => {
httpMock.get.withArgs(
`/spaces/space-id/environments/environment-id/actions/app-action-id/calls/call-id`
),
10
15
)
})

Expand Down Expand Up @@ -172,7 +172,7 @@ describe('Rest App Action Call', () => {
httpMock.get.withArgs(
`/spaces/space-id/environments/environment-id/actions/app-action-id/calls/call-id`
),
10
15
)
})

Expand Down

0 comments on commit 9006e5b

Please sign in to comment.