Skip to content

Commit 05198e5

Browse files
authored
[ML] Update jobs.begin_cancel() to use kwargs.pop() to fetch tag instead of kwargs.get() (Azure#28998)
* [ML] Support batch cancel (internal only) by tags within a workspace * Fix tag params * Fix job.list() ignoring tags * [ML] Update jobs.begin_cancel() to use kwargs.pop() to fetch tag instead of kwargs.get()
1 parent e7861e2 commit 05198e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_job_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def begin_cancel(self, name: str, **kwargs) -> LROPoller[None]:
323323
:rtype: ~azure.core.polling.LROPoller[None]
324324
:raise: ResourceNotFoundError if can't find a job matching provided name.
325325
"""
326-
tag = kwargs.get("tag", None) if kwargs else None
326+
tag = kwargs.pop("tag", None)
327327

328328
if not tag:
329329
return self._operation_2022_12_preview.begin_cancel(

0 commit comments

Comments
 (0)