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
c0d635ea
Commit
c0d635ea
authored
Oct 29, 2011
by
Betoule Marc
Committed by
Betoule Marc
Feb 16, 2013
Browse files
add logging when worker accomplish something
parent
384c18d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pipelet/worker.py
pipelet/worker.py
+3
-0
No files found.
pipelet/worker.py
View file @
c0d635ea
...
...
@@ -119,10 +119,13 @@ class Worker(object):
try
:
for
task
in
iter
(
self
.
scheduler
.
get_task
,
None
):
self
.
work_dir
=
self
.
pipe
.
get_curr_dir
(
task
.
seg
)
self
.
logger
.
info
(
'Processing one task of segment %s'
%
task
.
seg
)
task
=
self
.
execute_task
(
task
)
if
task
.
status
==
"done"
:
self
.
logger
.
info
(
'task done'
)
self
.
scheduler
.
task_done
(
task
)
else
:
self
.
logger
.
info
(
'task failed'
)
self
.
scheduler
.
task_failed
(
task
)
n
=
n
+
1
self
.
task
=
None
...
...
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