Skip to content

Commit

Permalink
fix(openfaas): fix issue in deployment retry handler
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Dec 13, 2019
1 parent 40729a4 commit f6e2cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garden-service/src/plugins/openfaas/openfaas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async function deployService(params: DeployServiceParams<OpenFaasModule>): Promi
const now = new Date().getTime()

// Retry a few times in case faas-netes is still initializing
if (err.all.includes("failed to deploy with status code: 503") && now - start < faasNetesInitTimeout * 1000) {
if (err.stderr?.includes("failed to deploy with status code: 503") && now - start < faasNetesInitTimeout * 1000) {
await sleep(retryWait)
continue
} else {
Expand Down

0 comments on commit f6e2cf3

Please sign in to comment.