Skip to content

Commit

Permalink
update runner
Browse files Browse the repository at this point in the history
  • Loading branch information
rhit-windsors committed Nov 6, 2024
1 parent 031e5f7 commit dc441e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/backend/job-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
spec:
containers:
- name: runner
image: gladospipeline/glados-runner:main
image: gladospipeline/glados-runner:development
imagePullPolicy: Always
command: []
env:
Expand Down
4 changes: 2 additions & 2 deletions apps/runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dc441e4

Please sign in to comment.