Skip to content

Commit

Permalink
handling the case if the job is never submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoruiDong committed May 10, 2020
1 parent fef7fc3 commit 79778b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arc/job/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,11 @@ def _get_additional_job_info(self):
elif cluster_soft.lower() == 'slurm':
if self.server != 'local':
with SSHClient(self.server) as ssh:
response = ssh.list_dir(remote_path=self.remote_path)
try:
response = ssh.list_dir(remote_path=self.remote_path)
except InputError:
# The remote path does not exist, it seems like the job never submitted
return ''
else:
response = execute_command(f'ls -alF {self.local_path}')
files = list()
Expand Down

0 comments on commit 79778b5

Please sign in to comment.