Lists recent and active job instances for a Fabric item. All pages returned by
Fabric are collected, and each result can be passed directly to
fabric_job_status(), fabric_job_wait(), or fabric_job_cancel().
Usage
fabric_job_instances(
item,
workspace = NULL,
item_type = NULL,
tenant_id = Sys.getenv("FABRICQUERYR_TENANT_ID"),
client_id = Sys.getenv("FABRICQUERYR_CLIENT_ID", unset =
"04b07795-8ddb-461a-bbee-02f9e1bf7b46"),
token = NULL,
auth_args = list(),
api_base = .fabric_api_base
)Arguments
- item
Item GUID, exact display name, or an item object returned by a discovery function. A discovered object is recommended because it includes the item type and workspace ID.
- workspace
Workspace GUID, exact display name, or a workspace object. Omit it when
itemis a discovered object containingworkspaceId.- item_type
Optional Fabric item type when
itemis a GUID. A discovered item supplies this automatically.- tenant_id
Entra tenant ID. Defaults to
FABRICQUERYR_TENANT_ID- client_id
Entra application ID. Defaults to
FABRICQUERYR_CLIENT_ID, then the Azure CLI application ID- token
Optional access token or token-provider function. Leave
NULLto let 'fabricQueryR' use its normal sign-in flow Afabric_jobhandle reuses its stored credential unlesstenant_id,client_id,token, or non-emptyauth_argsis supplied explicitly- auth_args
Additional sign-in options passed to
AzureAuth::get_azure_token()when no token source is supplied- api_base
Fabric REST API base URL. Most users should keep the default A discovered workspace-specific endpoint is used unless this argument is supplied explicitly
Value
A list of fabric_job_instance records. Fabric usually retains at
most 100 recently completed instances per item, plus active instances.
Unknown future status and invocation values are returned unchanged.
Details
Reading history requires an item read permission. The returned records keep an in-process reference to the supplied credential so they can be refreshed, waited on, or cancelled. That credential is not retained when a record is serialized.
Examples
if (FALSE) { # \dontrun{
# Discover the Notebook whose run history you want to inspect
workspace <- fabric_workspaces()[[1L]]
notebook <- fabric_notebooks(workspace)[[1L]]
# List runs, then refresh one returned job record
history <- fabric_job_instances(notebook)
history[[1]]$status
fabric_job_status(history[[1]])
} # }