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
f6e5282a
Commit
f6e5282a
authored
Jan 20, 2011
by
Maude Le Jeune
Browse files
Bug #1248.
Seg meta are saved on disk after seg computation once for all
parent
f1d8ce55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
pipelet/environment.py
pipelet/environment.py
+0
-6
pipelet/scheduler.py
pipelet/scheduler.py
+7
-1
No files found.
pipelet/environment.py
View file @
f6e5282a
...
...
@@ -352,12 +352,6 @@ class Environment(EnvironmentBase):
else
:
self
.
logger
.
warning
(
'parameter '
+
param
+
' not in dictionary'
)
var_tag
=
strtag
+
' <small>(<b>'
+
datetime
.
today
().
strftime
(
"%e %m - %R"
)
+
'</b>)</small> '
fn
=
self
.
_worker
.
pipe
.
get_meta_file
(
seg
)
with
closing
(
file
(
fn
,
'r'
))
as
f
:
d
=
pickle
.
load
(
f
)
d
[
'param'
]
=
var_tag
with
closing
(
file
(
fn
,
'w'
))
as
f
:
r
=
pickle
.
dump
(
d
,
f
)
return
var_tag
...
...
pipelet/scheduler.py
View file @
f6e5282a
...
...
@@ -184,6 +184,11 @@ class Scheduler():
except
:
d
=
{}
d
[
'parents'
]
=
lst_dir
try
:
d
[
'param'
]
=
self
.
products_list
.
_list
[
seg
][
-
1
].
param
except
:
logger
.
info
(
"no tag saved for seg %s"
%
seg
)
with
closing
(
file
(
fn
,
'w'
))
as
f
:
r
=
pickle
.
dump
(
d
,
f
)
...
...
@@ -224,7 +229,7 @@ class Scheduler():
fid
=
open
(
dest
,
"w"
)
fid
.
write
(
r
.
get_hook_string
(
seg
,
h
))
fid
.
close
()
self
.
store_meta_seg
(
seg
)
##
self.store_meta_seg(seg)
parents
=
self
.
pipe
.
get_parents
(
seg
)
## parents segments
d
=
self
.
tracker
.
get_done
(
seg
)
## done tasks
dprod
=
[
t
.
task_input
for
t
in
d
]
## done products
...
...
@@ -331,6 +336,7 @@ class Scheduler():
logger
.
warning
(
"Interrupting the main loop"
)
break
if
self
.
nb_success
:
self
.
store_meta_seg
(
s
)
self
.
nb_success
=
0
else
:
logger
.
warning
(
"No successfull job in the previous step %s, stopping here."
%
s
)
...
...
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