Skip to content

Add a polling frequency flag for the sfdx force:mdapi:deploy command #1938

@ChaseBowen

Description

@ChaseBowen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions