sf package install makes over 8 api calls per second while polling #2319
Labels
bug
Issue or pull request that identifies or fixes a bug
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
Summary
When the
sf package install
command polls installation status, it makes an absurd number of api calls. The package install command ran for 7m23.384s and it made 3570 api calls, which is over 8 per second. On a slower package installation, this consumed the org's entire 15000 api call limit in ~30 minutes of polling.Additionally, because of the update rate of the spinner, the command generates a significant amount of logs in ci systems. One package installation can result in over 1MB of logs.
Steps To Reproduce
Expected result
The command makes api calls to poll package installation status at a reasonable rate (maximum one per second, preferably slower).
Actual result
The command makes api calls to poll package installation status at an average rate of over 8 per second.
System Information
Shell: Bash
The text was updated successfully, but these errors were encountered: