Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

fix: Add retry support when listing deployed functions #215

Merged
merged 5 commits into from
Aug 2, 2019

Conversation

wbreza
Copy link
Contributor

@wbreza wbreza commented Jul 25, 2019

When listing the deployed functions on 1st time deployment it may take some additional time to initialize the function app and extract the functions. This adds a retry policy that will retry the function listing multiple times until the function app is fully ready.

@coveralls
Copy link

coveralls commented Jul 25, 2019

Coverage Status

Coverage decreased (-0.2%) to 84.112% when pulling a51424b on wabrez/async-retry into b0c5ef7 on dev.

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pjlittle
Copy link
Contributor

pjlittle commented Aug 1, 2019

One small comment, otherwise LGTM! Hopefully this helps w/ some of the flakiness we've seen :shipit:

@wbreza wbreza force-pushed the wabrez/async-retry branch from 7866663 to c5b28b6 Compare August 2, 2019 16:09
const serverlessFunctions = this.serverless.service.getAllFunctions();
const deployedFunctions = await this.listFunctions(functionApp);

// List functions that are part of the serverless yaml config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will there ever be a use case where there are deployed functions that are not in the yamL?

Copy link
Contributor

@mydiemho mydiemho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just have one question about listing functions

@wbreza wbreza merged commit 15ca299 into dev Aug 2, 2019
@tbarlow12 tbarlow12 deleted the wabrez/async-retry branch September 9, 2019 13:48
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
When listing the deployed functions on 1st time deployment it may take some additional time to initialize the function app and extract the functions. This adds a retry policy that will retry the function listing multiple times until the function app is fully ready.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants