Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

batchSize is not taken into account when creating scratch orgs in the pool #1142

Closed

Description

@domrycz

In scratch org pool config json file we have batchSize property. It is described in docs as: Number of processes for creating scratch orgs in parallel. However script always create all of scratch orgs to fill maxAlocation without taking into account batch size. When all scratch orgs are created it deploys artifacts - and now it uses batchSize propery.

Steps to reproduce the behavior:

Use scratch org pool config file with:
{
"maxAllocation": 15,
"batchSize": 5,
}
Run the sfpowerscripts:orchestrator:prepare command to prepare the pool. If pool is empty - it will first create 15 scratch orgs in a row.

Expected behavior
Prepare command should respect batchSize even for scratch org creation. This would speed up creation of new SOs and making them accessible for users or ci/cd faster. We will be able to have big pool and even after refreshing (deleting everything from pool and creating again) first scratch orgs will be available faster.

Platform Details (please complete the following information):

  • OS: Linux
  • sfpowerscripts 19.7.3

Activity

  1. added
    analysis
    on Nov 9, 2022
  2. added and removed
    analysis
    on Nov 23, 2022
  3. added
    enhancement
    and removed on Nov 23, 2022
  4. added a commit that references this issue on Jan 16, 2023
    68e1cf3
  5. added a commit that references this issue on Jan 16, 2023
    40bb19b
  6. azlam-abdulsalam commented on Jan 23, 2023

    @azlam-abdulsalam
    Contributor

    Feature added in January 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions