Skip to content

Commit 4b72f11

Browse files
authored
Sort backward_common_files and forward_common_files to prevent hash error (#207)
* fix tqdm and check has uploaded * add keep backup * change address * change some argument to optional * fix * fix * fix * fix * add stack * add stack info * add stack info * change default * fix sorted
1 parent e1ae97f commit 4b72f11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dpdispatcher/submission.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ def __init__(self,
4646
self._abs_work_base = os.path.abspath(work_base)
4747

4848
self.resources = resources
49-
self.forward_common_files= forward_common_files
50-
self.backward_common_files = backward_common_files
49+
self.forward_common_files = sorted(forward_common_files) \
50+
if isinstance(forward_common_files, list) \
51+
else forward_common_files
52+
self.backward_common_files = sorted(backward_common_files) \
53+
if isinstance(backward_common_files, list) \
54+
else backward_common_files
5155

5256
self.submission_hash = None
5357
# warning: can not remote .copy() or there will be bugs

0 commit comments

Comments
 (0)