Skip to content

Commit f63fa6d

Browse files
authored
fix: Increase deploy create/update timeout (#46)
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.
1 parent 9934545 commit f63fa6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cloudFunctionClient.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ export class CloudFunctionClient {
238238
const awaitUpdate = await this.pollOperation(
239239
updateFunctionResponse.data,
240240
'Updating function deployment',
241+
2,
242+
150,
241243
);
242244
core.info('Function deployment updated');
243245
return awaitUpdate;
@@ -255,6 +257,8 @@ export class CloudFunctionClient {
255257
const awaitCreate = await this.pollOperation(
256258
createFunctionResponse.data,
257259
'Creating function deployment',
260+
2,
261+
150,
258262
);
259263
core.info('Function deployment created');
260264
return awaitCreate;

0 commit comments

Comments
 (0)