From b119ed1ef970d979f9c4385ad754d1b17a292345 Mon Sep 17 00:00:00 2001 From: SdgJlbl Date: Wed, 14 Feb 2024 16:35:33 +0100 Subject: [PATCH] feat: change download_logs url Signed-off-by: SdgJlbl --- CHANGELOG.md | 1 + substra/sdk/backends/remote/backend.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b54fd26..cc67a31b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - BREAKING: Renamed `function` field of the Function pydantic model to `archive`([#393](https://github.com/Substra/substra/pull/393)) - BREAKING: Renamed ComputeTask status ([#397](https://github.com/Substra/substra/pull/397)) +- `download_logs` uses the new endpoint ([#398](https://github.com/Substra/substra/pull/398)) ### Added diff --git a/substra/sdk/backends/remote/backend.py b/substra/sdk/backends/remote/backend.py index 2d115985..72030e07 100644 --- a/substra/sdk/backends/remote/backend.py +++ b/substra/sdk/backends/remote/backend.py @@ -325,7 +325,7 @@ def download_logs(self, task_key: str, destination_file: str = None) -> str: """Download the logs of a failed task. If destination_file is set, return the full destination path, otherwise, return the logs as a str. """ - url = f"{self._client.base_url}/logs/{task_key}/file/" + url = f"{self._client.base_url}/task/{task_key}/logs/" if destination_file: return self._download(url, destination_file)