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
workflow
pypushflow
Commits
54087509
Commit
54087509
authored
Jul 02, 2021
by
Wout De Nolf
Browse files
StopActor: fix logging on success and failure
parent
54154d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypushflow/StopActor.py
View file @
54087509
...
...
@@ -62,8 +62,8 @@ class StopActor(ThreadCountingActor):
if
self
.
parent
is
None
:
return
if
success
:
logger
.
debug
(
'In {0}, parent {1}, finished'
.
format
(
self
.
name
,
self
.
parent
.
name
))
UtilsMongoDb
.
closeMongo
(
self
.
parent
.
mongoId
,
status
=
'finished'
)
else
:
logger
.
error
(
'In {0}, parent {1}, timeout detected'
.
format
(
self
.
name
,
self
.
parent
.
name
))
UtilsMongoDb
.
closeMongo
(
self
.
parent
.
mongoId
,
status
=
'timeout'
)
else
:
logger
.
error
(
'In {0}, parent {1}, finished'
.
format
(
self
.
name
,
self
.
parent
.
name
))
UtilsMongoDb
.
closeMongo
(
self
.
parent
.
mongoId
,
status
=
'finished'
)
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