Skip to content

Commit

Permalink
fix: download result
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinmin Du committed Jun 9, 2024
1 parent c80d3f3 commit 4f0ad71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/gpu/image/gpu_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def send_back_result(status):
sftp = ssh.open_sftp()

# download the result file
sftp.get(f'{remote_dir}/{job_id}.out', f'./{job_name}.out')
sftp.get(f'{remote_dir}/{job_id}.out', f'{local_dir}/{job_name}.out')
sftp.get(f'{remote_dir}/{job_id}.err', f'{local_dir}/{job_name}.err')
print(f"Downloaded result file {job_id}.out.")
send_back_result('success')

Expand Down

0 comments on commit 4f0ad71

Please sign in to comment.