Skip to content
Snippets Groups Projects
Commit 6589e42c authored by Wout De Nolf's avatar Wout De Nolf
Browse files

use the task identifier as 'script' for mongo logging

parent 3efff860
No related branches found
Tags v0.0.3a3
1 merge request!50Mongodb log fixes
Pipeline #67772 passed
......@@ -81,6 +81,17 @@ class EwoksPythonActor(PythonActor):
inData[infokey]["node_attrs"] = self.node_attrs
return super().trigger(inData)
def uploadInDataToMongo(self, **kw):
task_identifier = self.node_attrs.get("task_identifier")
if task_identifier:
kw["script"] = task_identifier
super().uploadInDataToMongo(**kw)
def uploadOutDataToMongo(self, **kw):
task_identifier = self.node_attrs.get("task_identifier")
if task_identifier:
super().uploadOutDataToMongo(**kw)
class ConditionalActor(AbstractActor):
"""Triggers downstream actors when conditions are fulfilled."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment