GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit d87738a8 authored by Operator for ID30's avatar Operator for ID30

Removed redundant inData in the outData uploaded to mongodb

parent 60e8dc89
......@@ -140,6 +140,7 @@ class PythonActor(AbstractActor):
# Import script
module = importlib.import_module(os.path.splitext(script)[0])
self.actorWrapper = ActorWrapper(name,
self.inData = None
self.outData = None = None
......@@ -147,6 +148,7 @@ class PythonActor(AbstractActor):
def trigger(self, inData):
self.inData = inData
self.uploadDataToMongo(actorData={'inData': inData})
logger.debug('In trigger {0}, inData = {1}'.format(, pprint.pformat(inData)))
if isinstance(inData, WorkflowException):
......@@ -211,10 +213,17 @@ class PythonActor(AbstractActor):
logger.error('Trigger on error on errorHandler {0}'.format(
outData = {}
for key, value in inData.items():
if key in self.inData:
if self.inData[key] != value:
outData[key] = value
outData[key] = value
'stopTime': datetime.datetime.utcnow(),
'status': 'finished',
'outData': inData
'outData': outData
for downStreamActor in self.listDownStreamActor:
logger.debug('In trigger {0}, triggering actor {1}, inData={2}'.format(,, inData))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment