Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ewoksppf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
workflow
ewoks
ewoksppf
Commits
6589e42c
Commit
6589e42c
authored
3 years ago
by
Wout De Nolf
Browse files
Options
Downloads
Patches
Plain Diff
use the task identifier as 'script' for mongo logging
parent
3efff860
No related branches found
Branches containing commit
Tags
v0.0.3a3
Tags containing commit
1 merge request
!50
Mongodb log fixes
Pipeline
#67772
passed
3 years ago
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ewoksppf/bindings.py
+11
-0
11 additions, 0 deletions
ewoksppf/bindings.py
with
11 additions
and
0 deletions
ewoksppf/bindings.py
+
11
−
0
View file @
6589e42c
...
...
@@ -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.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment