Skip to content

Commit 713391b

Browse files
authored
Merge pull request #143 from felix5572/master
update; fix download bug: when job end successfully but download fail; will not update job state.
2 parents a6f87f0 + e032235 commit 713391b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpdispatcher/submission.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Submission(object):
1818
Parameters
1919
----------
2020
work_base : Path
21-
path-like, the base directory of the local tasks
21+
the base directory of the local tasks. It is usually the dir name of project .
2222
machine : Machine
2323
machine class object (for example, PBS, Slurm, Shell) to execute the jobs.
2424
The machine can still be bound after the instantiation with the bind_submission method.
@@ -189,8 +189,8 @@ def run_submission(self, *, exit_on_submit=False, clean=True):
189189
finally:
190190
pass
191191
self.handle_unexpected_submission_state()
192-
self.submission_to_json()
193192
self.download_jobs()
193+
self.submission_to_json()
194194
if clean:
195195
self.clean_jobs()
196196
return self.serialize()

0 commit comments

Comments
 (0)