Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
c377dd08
Commit
c377dd08
authored
May 14, 2012
by
Maude Le Jeune
Browse files
web.py : break the log while to avoid infinite loop
parent
853954e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
pipelet/environment.py
pipelet/environment.py
+2
-0
pipelet/web.py
pipelet/web.py
+1
-1
test/engine_performance/performance_test.py
test/engine_performance/performance_test.py
+1
-1
No files found.
pipelet/environment.py
View file @
c377dd08
...
...
@@ -285,6 +285,8 @@ class Environment(EnvironmentBase):
elif
isinstance
(
segs
,
str
):
segs
=
[
segs
]
res
=
[]
if
not
isinstance
(
segs
,
list
):
self
.
logger
.
critical
(
"can't convert string to list"
)
for
x
in
segs
:
segx
=
self
.
_worker
.
pipe
.
find_seg
(
self
.
_worker
.
task
.
seg
,
x
)
if
segx
is
None
:
...
...
pipelet/web.py
View file @
c377dd08
...
...
@@ -303,7 +303,7 @@ class Web:
## find log dir
last_dir
=
l
[
0
][
1
]
log_dir
=
False
while
not
log_dir
:
while
not
log_dir
and
last_dir
!=
'/'
:
last_dir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
last_dir
,
os
.
path
.
pardir
))
log_dir
=
os
.
path
.
isdir
(
os
.
path
.
join
(
last_dir
,
"log"
))
log_dir
=
os
.
path
.
join
(
last_dir
,
"log"
)
...
...
test/engine_performance/performance_test.py
View file @
c377dd08
...
...
@@ -216,7 +216,7 @@ pickle.dump(dict(( ('ntasks', ntasks), ('nseg', nseg), ('TT', TT), ('TT_done', T
fid
.
close
()
import
pickle
fid
=
file
(
"results.pkl"
,
"r"
)
fid
=
file
(
"results
_nersc
.pkl"
,
"r"
)
d
=
pickle
.
load
(
fid
)
for
k
,
v
in
d
.
iteritems
():
globals
()[
k
]
=
v
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment