Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add variable polling times based on comp. set #360

Merged
merged 5 commits into from
Jan 4, 2022

Conversation

WillieRuemmele
Copy link
Contributor

@WillieRuemmele WillieRuemmele commented Dec 29, 2021

What does this PR do?

adds variable polling frequency to deploy/push/pull/retrieve

I ended up creating a piece-wise function to capture "small" vs "medium" vs "large" vs "larger" deploys - I'm very open to changing the boundaries and frequencies each should return. I did notice a difference between 250ms and 100ms

What issues does this PR fix or reference?

@W-9586672@

requires forcedotcom/source-deploy-retrieve#520

@WillieRuemmele WillieRuemmele requested a review from a team December 29, 2021 22:31
@peternhale
Copy link
Contributor

@WillieRuemmele not sure if this helps, but the underlying module ts-retry-promise has configuration options that allow one to specify a non-linear delays.

Copy link
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

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

I'm not opposed to this being in plugin-source. Thinking of sf and vscode and other potential users...
would it make more sense to put this in SDR since it would have a component set already? Then if the user didn't specify some polling interval, your calculated intervals would be the default behavior?

@WillieRuemmele WillieRuemmele marked this pull request as draft January 3, 2022 21:25
@mshanemc mshanemc marked this pull request as ready for review January 3, 2022 23:36
@mshanemc mshanemc merged commit 4a839ff into main Jan 4, 2022
@mshanemc mshanemc deleted the wr/pollingIntervals branch January 4, 2022 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants