Monitor Sandbox Pools
Last updated
Last updated
sfp-pro | sfp (community) | |
---|---|---|
The sfp sandbox monitor
command is used to monitor the status of sandboxes in pools, activate new sandboxes, handle expirations, and manage deletions. This command is designed to be run as a continuous cron job.
-v, --targetdevhubusername
: Alias of the target Dev Hub org (required)
-r, --repo
: Repository in the format owner/repo (required)
-f, --configfile
: Path to the sandbox pool configuration file(s) (required, can be specified multiple times)
This command should be set up as a cron job to run at regular intervals (e.g., every 15-30 minutes). This ensures:
Prompt activation of newly created sandboxes
Timely identification and marking of expired sandboxes
Deletion of marked sandboxes to free up resources
Maintenance of a healthy and efficient sandbox pool
Identifies sandboxes in 'InProgress' state
Attempts to activate them
Updates their status in GitHub variables
Checks sandboxes against their expiration times
Considers default expiration, extended expiration, and average creation time
Marks expired sandboxes in GitHub variables
Identifies sandboxes marked as 'Expired'
Attempts to delete them from the Salesforce org
Removes corresponding GitHub variables
Logs results of the deletion process
Default Expiration: 24 hours (configurable)
Extended Expiration: Additional 24 hours (configurable)
Average Creation Time: 2 hours (configurable)
These times can be customized in the pool configuration file.
This command monitors sandbox pools defined in both configuration files, using the Dev Hub 'my-devhub', and updates statuses in the 'myorg/myrepo' GitHub repository.
Availability
✅
❌
From
September 24