You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a wrapper function for the following API: `Job Scheduler - Create Item Schedule <https://learn.microsoft.com/rest/api/fabric/core/job-scheduler/create-item-schedule>`_.
459
460
461
+
Service Principal Authentication is supported (see `here <https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Service%20Principal.ipynb>`_ for examples).
f"{icons.green_dot} The schedule for the '{item_name}' {type.lower()} has been created."
529
532
)
533
+
534
+
535
+
@log
536
+
defcancel_item_job_instance(
537
+
item: str|UUID,
538
+
job_instance_id: UUID,
539
+
type: str,
540
+
workspace: Optional[str|UUID] =None,
541
+
):
542
+
"""
543
+
Cancel an item's job instance.
544
+
545
+
This is a wrapper function for the following API: `Job Scheduler - Cancel Item Job Instance <https://learn.microsoft.com/rest/api/fabric/core/job-scheduler/cancel-item-job-instance>`_.
546
+
547
+
Service Principal Authentication is supported (see `here <https://github.com/microsoft/semantic-link-labs/blob/main/notebooks/Service%20Principal.ipynb>`_ for examples).
548
+
549
+
Parameters
550
+
----------
551
+
item : str | uuid.UUID
552
+
The item name or ID.
553
+
job_instance_id : uuid.UUID
554
+
The job instance ID to cancel.
555
+
type : str
556
+
The item `type <https://learn.microsoft.com/rest/api/fabric/core/items/list-items?tabs=HTTP#itemtype>`_. If specifying the item name as the item, the item type is required.
557
+
workspace : str | uuid.UUID, default=None
558
+
The Fabric workspace name or ID used by the lakehouse.
559
+
Defaults to None which resolves to the workspace of the attached lakehouse
560
+
or if no lakehouse attached, resolves to the workspace of the notebook.
0 commit comments