Drux
Drux

Reputation: 12660

Google Cloud Functions GitHub auto-deployer says: service timeout

After overcoming a previous problem with the Google Cloud Functions GitHub auto-deployer, I am now observing this error reported by GitHub for its webhook:

We couldn’t deliver this payload: Service Timeout 

Is it correct to assume that the since GitHub's maximum webhook timeout period was shortened to 10 seconds back in September, it is now simply too short for successfully deploying Google Cloud Functions? If so, can githubAutoDeployer still serve in any reliable manner?

The following indication obtained when deploying functions "manually" with gcloud beta functions deploy seems relevant:

Deploying function (may take a while - up to 2 minutes)

Upvotes: 1

Views: 89

Answers (1)

VonC
VonC

Reputation: 1324557

Is it correct to assume that the since GitHub's maximum webhook timeout period was shortened to 10 seconds back in September, it is now simply too short for successfully deploying Google Cloud Functions?

Yes.

If so, can githubAutoDeployer still serve in any reliable manner?

No, considering it is a synchronous process which aims at (auto-deployer/index.js) returning the result for each deployment.
You would need to rewrite the index.js in order for the process to be asychronous, returning immediately but losing the deployment status.

Upvotes: 1

Related Questions