Skip to content

Observe a custom live-pool job safely

A custom live pool requires an explicitly selected custom Spark pool and a published Environment with live-pool support enabled. Starter pools are not supported. Inspect the selected configuration and review capacity consumption before running compute; never change an existing environment or enable a tenant setting as an automatic repair.

For schedule authoring, put the complete reviewed request in schedule.json and keep enabled false. Choose future dates and the intended time zone before use:

{
"enabled": false,
"configuration": {
"type": "Cron",
"startDateTime": "2027-01-01T00:00:00Z",
"endDateTime": "2027-01-02T00:00:00Z",
"localTimeZoneId": "UTC",
"interval": 1440
}
}
Terminal window
fabio --wrap-untrusted environment create-custom-live-pool-schedule --workspace "$WS" --id "$ENVIRONMENT" --file schedule.json --dry-run

The file path preserves the full configuration rather than inventing a subset of typed schedule flags. Schedule creation alone does not prove that hydration ran; enabling a schedule is a separately reviewed compute change.

Terminal window
fabio --wrap-untrusted environment run-custom-live-pool --workspace "$WS" --id "$ENVIRONMENT" --dry-run
fabio --wrap-untrusted environment run-custom-live-pool --workspace "$WS" --id "$ENVIRONMENT"

The legacy jobInstanceId remains available. The response also includes the exact jobReceipt, receiptPersisted, and retryAllowed: false. Preserve the receipt privately, particularly when local bookkeeping fails. Do not replay a submission to recover its ID or create another job after an uncertain error.

Bound observation, not the pool’s server-side lifetime

Section titled “Bound observation, not the pool’s server-side lifetime”
Terminal window
fabio --wrap-untrusted environment run-custom-live-pool --workspace "$WS" --id "$ENVIRONMENT" --wait --timeout 300 --dry-run
fabio --wrap-untrusted environment run-custom-live-pool --workspace "$WS" --id "$ENVIRONMENT" --wait --timeout 300

These are new submissions, not commands for waiting on a previously started job. --wait observes only the returned job. --timeout accepts 1–3,600 seconds (default 300), covering observation requests and polling delays after acceptance. A timeout leaves server-side work running unless cancellation was explicitly requested. Inspect the preserved receipt with the existing job API:

Terminal window
fabio --wrap-untrusted job-scheduler get-instance --workspace "$WS" --id "$ENVIRONMENT" --job-instance-id "$JOB" --readonly

The live-pool job can run for its configured lifespan. Fabric enforces at least PT20M for cluster idle timeout and PT30M for pool lifespan. Finishing the lifecycle is not a warm-capacity readiness check, and a short local deadline does not imply a failed hydration. Inspect explicitly correlated pool activation details before claiming that compute is available; historical success is not proof that clusters are warm now.

Terminal window
fabio --wrap-untrusted environment run-custom-live-pool --workspace "$WS" --id "$ENVIRONMENT" --wait --timeout 300 --cancel-on-timeout --dry-run

This preview is marked destructive because it permits cancellation. Confirm the scope and risk before removing --dry-run; --cancel-on-timeout requires --wait. Only the accepted job is targeted. cancelRequested: true and receipt status cancel_requested are acknowledgements, not proof of a terminal cancelled state or released capacity. Read that exact job afterward; never retry hydration because observation or cancellation failed.

The release Spark compute API explicitly uses beta=false, a sparkProperties array, and live-pool fields. The older beta=true contract uses dictionary Spark properties and does not define those fields. The CLI preserves beta as the default for existing callers; choose --compute-api release explicitly on settings reads and updates. There is no automatic fallback between contracts.

Terminal window
fabio --wrap-untrusted environment get-staging-spark-settings --workspace "$WS" --id "$ENVIRONMENT" --compute-api release --readonly
fabio --wrap-untrusted environment update-staging-spark-compute --workspace "$WS" --id "$ENVIRONMENT" --compute-api release --spark-property spark.sql.shuffle.partitions=2 --custom-live-pool-support Disabled --max-clusters-to-hydrate 1 --cluster-idle-timeout PT20M --custom-live-pool-lifespan PT30M --dry-run
fabio --wrap-untrusted environment get-spark-settings --workspace "$WS" --id "$ENVIRONMENT" --compute-api release --readonly

Typed property overrides merge by key in the selected shape. Release updates retain other entries, order and unknown fields; duplicate or malformed entries are rejected rather than discarded. Raw --file/--content requests must match the selected API: dictionary properties for beta, {key,value} arrays for release. Hydration flags require explicit release selection, including in dry-run. A format mismatch fails before submission; it is not permission to convert a saved request or silently change its contract.

The preview validates inputs without reading current settings. Execution reads, merges and patches; this is not atomic compare-and-swap, so coordinate concurrent writers. Raw requests remain explicitly authored full bodies. First select a compatible custom pool through reviewed configuration or the UI; the runner does not choose a pool, configure, publish or enable environments for you.

Discover the recipe with fabio context workflow custom-live-pool-job and the response contract with fabio context examples environment run-custom-live-pool.