コード例 #1
0
def delete_artifact(task_run_artifact_id: str) -> None:
    """
    Delete an existing artifact

    Args:
        - task_run_artifact_id (str): the ID of an existing task run artifact
    """
    if not _running_with_backend():
        return

    client = Client()
    client.delete_task_run_artifact(task_run_artifact_id=task_run_artifact_id)
コード例 #2
0
def delete_artifact(task_run_artifact_id: str) -> None:
    """
    Delete an existing artifact

    Note: The functionality here is experimental, and may change between
    versions without notice. Use at your own risk.

    Args:
        - task_run_artifact_id (str): the ID of an existing task run artifact
    """
    if not _running_with_backend():
        return

    client = Client()
    client.delete_task_run_artifact(task_run_artifact_id=task_run_artifact_id)