Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
3b3d66fa
Commit
3b3d66fa
authored
Apr 21, 2016
by
Mathieu Giraud
Committed by
Vidjil Team
Apr 21, 2016
Browse files
task.py: fix pre-process log output
parent
e1b6050b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/models/task.py
View file @
3b3d66fa
...
...
@@ -202,7 +202,7 @@ def run_vidjil(id_file, id_config, id_data, id_fuse, grep_reads,
(
stdoutdata
,
stderrdata
)
=
p
.
communicate
()
print
"Output log in "
+
out_
folder
+
'/'
+
output_filename
+
'.vidjil.
log
'
print
"Output log in "
+
out_log
sys
.
stdout
.
flush
()
db
.
commit
()
...
...
@@ -679,12 +679,13 @@ def run_pre_process(pre_process_id, sequence_file_id, clean_before=True, clean_a
print
"==============="
sys
.
stdout
.
flush
()
log_file
=
open
(
out_folder
+
'/'
+
output_filename
+
'.pre.log'
,
'w'
)
out_log
=
out_folder
+
'/'
+
output_filename
+
'.pre.log'
log_file
=
open
(
out_log
,
'w'
)
os
.
chdir
(
defs
.
DIR_FUSE
)
p
=
Popen
(
cmd
,
shell
=
True
,
stdin
=
PIPE
,
stdout
=
log_file
,
stderr
=
log_file
,
close_fds
=
True
)
(
stdoutdata
,
stderrdata
)
=
p
.
communicate
()
print
"Output log in "
+
out_
folder
+
'/'
+
output_filename
+
'.pre.
log
'
print
"Output log in "
+
out_log
filepath
=
os
.
path
.
abspath
(
output_file
)
...
...
@@ -704,7 +705,8 @@ def run_pre_process(pre_process_id, sequence_file_id, clean_before=True, clean_a
db
.
commit
()
# Dump log in scheduler_run.run_output
for
l
in
open
(
log_file
):
log_file
.
close
()
for
l
in
open
(
out_log
):
print
l
,
if
clean_after
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment