Is your feature request related to a problem? Please describe.
We have hit API limits when running a long-running sfdx force:mdapi:deploy -w -1 command. It seems like the value is set at 500 milliseconds as of current, https://github.com/salesforcecli/plugin-source/blob/main/src/commands/force/mdapi/deploy.ts#L177. It would be nice to have a flag to change this value to avoid using more api calls unnecessarily.
What are you trying to do
Avoid API limits by reducing polling frequency (allowing us to specify polling frequency)
Describe the solution you'd like
I would like a flag to be available to specify the polling frequency of the poll under the hood of the mdapi:deploy command instead of having to break out the deploy and poll ourselves. It would be nice if the polling frequency was included as a flag in seconds? milliseconds?
Describe alternatives you've considered
Breaking out the commands into a sfdx force:mdapi:deploy and a sfdx force:mdapi:deploy:report and polling ourselves with sleep commands
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
We have hit API limits when running a long-running
sfdx force:mdapi:deploy -w -1command. It seems like the value is set at 500 milliseconds as of current, https://github.com/salesforcecli/plugin-source/blob/main/src/commands/force/mdapi/deploy.ts#L177. It would be nice to have a flag to change this value to avoid using more api calls unnecessarily.What are you trying to do
Avoid API limits by reducing polling frequency (allowing us to specify polling frequency)
Describe the solution you'd like
I would like a flag to be available to specify the polling frequency of the poll under the hood of the mdapi:deploy command instead of having to break out the deploy and poll ourselves. It would be nice if the polling frequency was included as a flag in seconds? milliseconds?
Describe alternatives you've considered
Breaking out the commands into a
sfdx force:mdapi:deployand asfdx force:mdapi:deploy:reportand polling ourselves with sleep commandsAdditional context
Add any other context or screenshots about the feature request here.