Skip to content
Snippets Groups Projects
Commit cab325ad authored by David Verelst's avatar David Verelst
Browse files

sort pbs file list before saving

parent 430d8bb0
No related branches found
No related tags found
No related merge requests found
...@@ -386,13 +386,14 @@ class Scheduler: ...@@ -386,13 +386,14 @@ class Scheduler:
print 'Building file list of to be launched jobs. ', print 'Building file list of to be launched jobs. ',
print 'Might take a while...' print 'Might take a while...'
pbsflist = build_pbsflist(path_pbs_files) pbsflist = build_pbsflist(path_pbs_files)
if sort:
pbsflist.sort()
save_pbsflist(fname, pbsflist) save_pbsflist(fname, pbsflist)
else: else:
print 'Loading file list from cache...' print 'Loading file list from cache...'
pbsflist = load_pbsflist(fname) pbsflist = load_pbsflist(fname)
if sort:
if sort: pbsflist.sort()
pbsflist.sort()
# filter out files we will not launch # filter out files we will not launch
regex = re.compile(search_crit_re) regex = re.compile(search_crit_re)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment