Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pbsutils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
pbsutils
Commits
071c7697
Commit
071c7697
authored
8 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
change default pbs file list cache to launch_pbs_filelist.txt
parent
11759ab9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
launch.py
+4
-5
4 additions, 5 deletions
launch.py
with
4 additions
and
5 deletions
launch.py
+
4
−
5
View file @
071c7697
...
...
@@ -247,7 +247,7 @@ def launch_deps(nr_cpus, path_pbs_files=None, search_crit_re=r'\.p$',
else
:
flog
=
None
fname
=
os
.
path
.
join
(
os
.
getcwd
(),
'
pbs_in_file_cache
.txt
'
)
fname
=
os
.
path
.
join
(
os
.
getcwd
(),
'
launch_pbs_filelist
.txt
'
)
if
not
cache
:
print_both
(
flog
,
'
Building file list of to be launched jobs.
'
'
Might take a while...
'
)
...
...
@@ -373,7 +373,7 @@ class Scheduler:
path_pbs_files : path, default=None
If set to None, the default file name and path are assumed:
'
pbs_in_file_cache
.txt
'
and the current working directory
'
launch_pbs_filelist
.txt
'
and the current working directory
respectively.
search_crit_re : string, default=r
'
\.p$
'
...
...
@@ -466,7 +466,7 @@ class Scheduler:
def
get_joblist
(
self
,
verbose
=
True
):
# build the file list
self
.
f_pbsflist
=
os
.
path
.
join
(
os
.
getcwd
(),
'
pbs_in_file_cache
.txt
'
)
self
.
f_pbsflist
=
os
.
path
.
join
(
self
.
path_pbs_files
,
'
launch_pbs_filelist
.txt
'
)
if
not
self
.
cache
:
if
verbose
:
print
'
Building file list of to be launched jobs.
'
,
...
...
@@ -686,8 +686,7 @@ class Scheduler:
time
.
sleep
(
self
.
tsleep_short
)
ii
+=
1
elif
crontab_mode
:
fname
=
os
.
path
.
join
(
os
.
getcwd
(),
'
pbs_in_file_cache.txt
'
)
save_pbsflist
(
fname
,
pbsflist
[
ii
:])
save_pbsflist
(
self
.
f_pbsflist
,
pbsflist
[
ii
:])
return
else
:
# wait a bit before trying to launch a job again
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment