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

Delete Scratch Org when force:org:create didn't succeed #202

Closed
FabienTaillon opened this issue Oct 14, 2019 · 3 comments
Closed

Delete Scratch Org when force:org:create didn't succeed #202

FabienTaillon opened this issue Oct 14, 2019 · 3 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@FabienTaillon
Copy link

BUG
With the new mapping between the Metadata API settings and the project-scratch-def.json file, the CLI is now creating a Scratch Org, and then deploy the settings.

This is an implementation detail, but leading to a painful result:
Each time a Scratch Org fails because of a setting issue (ERROR running force:org:create: Failed to deploy settings to scratch org), the Scratch Org is still created and counts against the active Scratch Org limit (ERROR running force:org:create: The signup request failed because this organization has reached its active scratch org limit).

What are you trying to do
Trying to create a Scratch Org, and if it doesn't work, don't count it in the active scratch org limit as the command failed.

Describe the solution you'd like
When sfdx force:org:create fails, don't count it in the active scratch org limit (most likely, delete it if settings deployment failed).

Additional context
Today we had an issue with Scratch Org creation and its related settings (see #201). When a whole team is trying to create a Scratch Org, that it's failing, and that each failed attempt count against the limit, you quickly reach the limit.

@aheber
Copy link

aheber commented Oct 14, 2019

As a side note, this will also count against the daily creation limit (usually double the active limit). If this becomes a consistent problem you could easily exhaust both limits before you know it.

@clairebianchi clairebianchi added the owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. label Oct 18, 2019
@iowillhoit iowillhoit added bug Issue or pull request that identifies or fixes a bug and removed owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. area:org labels Jan 23, 2024
Copy link

git2gus bot commented Jan 23, 2024

This issue has been linked to a new work item: W-14879553

@jshackell-sfdc
Copy link
Collaborator

This issue was fixed in version 2.47.6 (June 26, 2024).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

6 participants