pub async fn run(settings: &Settings, deploy_id: &str) -> Result<(), CliError>Expand description
Abort a staged deployment by dropping schemas, clusters, and deployment records.
This command:
- Validates that the deployment exists and hasn’t been promoted
- Requires the
materialize_deployerrole - Drops all staging schemas (with _<deploy_id> suffix)
- Drops all staging clusters (with _<deploy_id> suffix)
- Deletes deployment tracking records
§Arguments
settings- CLI settings containing connection and directory infodeploy_id- Staging deployment ID to abort
§Returns
Ok(()) if abort succeeds
§Errors
Returns CliError::Connection if the deployment doesn’t exist
Returns CliError::Connection if the deployment was already promoted
Returns CliError::RoleNotAuthorized if the user lacks the required role