Skip to content

Commit

Permalink
fix: Increase deploy create/update timeout (#46)
Browse files Browse the repository at this point in the history
Right now the timeout is nominally 200 seconds, and my deployments often flakily fail. The deployments in GCP succeed, but the GitHub action stops listening and fails. This increases the timeout to nominally 300 seconds.

Resolves issue #45.
  • Loading branch information
xylo04 committed Feb 21, 2021
1 parent 9934545 commit f63fa6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cloudFunctionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ export class CloudFunctionClient {
const awaitUpdate = await this.pollOperation(
updateFunctionResponse.data,
'Updating function deployment',
2,
150,
);
core.info('Function deployment updated');
return awaitUpdate;
Expand All @@ -255,6 +257,8 @@ export class CloudFunctionClient {
const awaitCreate = await this.pollOperation(
createFunctionResponse.data,
'Creating function deployment',
2,
150,
);
core.info('Function deployment created');
return awaitCreate;
Expand Down

0 comments on commit f63fa6d

Please sign in to comment.