From dc441e44dcf519f9fc9874761bc97c4e3ae0fb6d Mon Sep 17 00:00:00 2001 From: rhit-windsors Date: Wed, 6 Nov 2024 13:56:30 -0500 Subject: [PATCH] update runner --- apps/backend/job-runner.yaml | 2 +- apps/runner/runner.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/backend/job-runner.yaml b/apps/backend/job-runner.yaml index cbd45305..0ff57460 100644 --- a/apps/backend/job-runner.yaml +++ b/apps/backend/job-runner.yaml @@ -10,7 +10,7 @@ spec: spec: containers: - name: runner - image: gladospipeline/glados-runner:main + image: gladospipeline/glados-runner:development imagePullPolicy: Always command: [] env: diff --git a/apps/runner/runner.py b/apps/runner/runner.py index 11f054a3..d617a210 100644 --- a/apps/runner/runner.py +++ b/apps/runner/runner.py @@ -198,9 +198,9 @@ def download_experiment_files(experiment: ExperimentData): # try to call the backend to download url = f'http://glados-service-backend:{os.getenv("BACKEND_PORT")}/downloadExpFile?expId={experiment.expId}' response = requests.get(url, timeout=60) - file_contents = base64.b64decode(response.json()["contents"]).decode() + file_contents = response.content # write the file contents to file path - with open(filepath, "x") as file: + with open(filepath, "xb") as file: file.write(file_contents) except Exception as err: