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
a1257e52
Commit
a1257e52
authored
Aug 04, 2020
by
payno
Browse files
[PythonActor] simplify overwriting in_data
parent
9054ef4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypushflow/PythonActor.py
View file @
a1257e52
...
...
@@ -211,14 +211,12 @@ class PythonActor(AbstractActor):
:param data: input data
"""
channel
,
in_data
=
in_data
logging
.
info
(
'
o
n trigger channel is
'
,
channel
)
logging
.
info
(
'
O
n trigger channel is
'
+
str
(
channel
)
)
# cast data to dict if necessary
if
hasattr
(
in_data
,
'to_dict'
):
_in_data
=
in_data
.
to_dict
()
else
:
_in_data
=
in_data
in_data
=
in_data
.
to_dict
()
self
.
in_data
=
_
in_data
self
.
in_data
=
in_data
logger
.
debug
(
'In trigger {0}, inData = {1}'
.
format
(
self
.
name
,
pprint
.
pformat
(
in_data
)))
if
isinstance
(
in_data
,
WorkflowException
):
logger
.
error
(
'Error from previous actor! Not running actor {0}'
.
format
(
self
.
name
))
...
...
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