Get Job Status
get_job_statusCheck the status and details of a running or completed job in Microsoft Fabric, including NotStarted, InProgress, Completed, Failed, or Cancelled states.
Instructions
Get status of a specific job instance.
Retrieves the current status and details of a running or completed job. The job state includes: NotStarted, InProgress, Completed, Failed, Cancelled.
Parameters: workspace_name: The display name of the workspace. item_name: Name of the item. item_type: Type of the item (Notebook, Pipeline, etc.). job_instance_id: ID of the job instance to check.
Returns: Dictionary with status, message, and job details including: - job_instance_id, item_id, job_type, job_status - invoke_type, root_activity_id, start_time_utc, end_time_utc - failure_reason (if failed) - is_terminal, is_successful, is_failed, is_running flags
Example: ```python result = get_job_status( workspace_name="My Workspace", item_name="analysis_notebook", item_type="Notebook", job_instance_id="12345678-1234-1234-1234-123456789abc" )
if result["job"]["is_terminal"]:
if result["job"]["is_successful"]:
print("Job completed successfully!")
else:
print(f"Job failed: {result['job']['failure_reason']}")
```Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_name": "<workspace_name>",
"item_name": "<item_name>",
"item_type": "<item_type>",
"job_instance_id": "<job_instance_id>"
},
"name": "get_job_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_name | Yes | ||
| item_name | Yes | ||
| item_type | Yes | ||
| job_instance_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||