Skip to content

The org resume sandbox command started taking five minutes to complete #3452

@kyle-blair

Description

@kyle-blair

Summary

The sf org resume sandbox command has started taking 5 minutes and 2-30 seconds to return a response. We are managing a pool of sandboxes, and it happens for every sandbox in the pool (16 calls in a row). We are running the same workflow for a different production org, and the command returns in the typical 2-5 seconds for the sandboxes from that org. There are other similar, but not identical, scenarios within the same org where the resume call returns in seconds, as expected.

Steps To Reproduce

  1. Create/refresh a sandbox from production.
  2. Wait until the sandbox is complete.
  3. Run the following command:
sf org resume sandbox --name sandbox --target-org production --wait 0 --json

Where "production" is an alias for an auth to the production org for the same user that initiated the sandbox create/refresh.

Expected result

  • Given the --wait 0 flag, the sf org resume sandbox command should return within a reasonable amount of time, in the realm of seconds, not minutes.
  • Given the --wait 0 flag, it should return reasonably quickly regardless of the actual status of the sandbox being resumed.

Actual result

The cli consistently takes 5 minutes to return, plus a couple of seconds. It's almost like there's a 5 minute timer where nothing happens, then the command starts and returns in the next couple seconds. Other usage of the resume command returns normally and does not take 5 minutes. I have not been able to discern any differences in how they're being called versus how they're behaving.

Additional Information

This is a continuation of #3407. That was auto-closed and I'm not able to reopen it.

System Information

Running from automation, so limited output is available.
@salesforce/cli/2.107.6 linux-x64 node-v20.19.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions