Skip to content

job_tracker

sqllocks_spindle.engine.job_tracker

Fabric REST API client for polling and cancelling notebook job runs.

Classes

FabricJobTracker

Thin wrapper around the Fabric Jobs REST API.

Parameters:

Name Type Description Default
token str

Bearer token for Entra authentication.

required
Methods:
get_status(workspace_id, item_id, run_id)

Poll Fabric for the current status of a notebook run.

Returns:

Type Description
dict

dict with keys: status (Spindle-normalized), fabric_status (raw),

dict

fabric_run_id.

cancel(workspace_id, item_id, run_id)

Cancel an in-flight Fabric notebook run.

Returns:

Type Description
dict

dict with keys: cancelled (True), fabric_run_id.