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
25b2a077
Commit
25b2a077
authored
Aug 04, 2020
by
payno
Browse files
[JoinActor] adapt join actor to updated code
parent
b88d79cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
pypushflow/JoinActor.py
View file @
25b2a077
...
...
@@ -36,14 +36,18 @@ class JoinActor(AbstractActor):
def
increaseNumberOfThreads
(
self
):
self
.
numberOfThreads
+=
1
def
trigger
(
self
,
inData
):
self
.
listInData
.
append
(
inData
)
def
trigger
(
self
,
in_data
):
if
in_data
is
None
:
channel
=
data
=
None
else
:
channel
,
data
=
in_data
self
.
listInData
.
append
(
data
)
if
len
(
self
.
listInData
)
==
self
.
numberOfThreads
:
newInData
=
{}
for
data
in
self
.
listInData
:
newInData
.
update
(
data
)
for
actor
in
self
.
listDownStreamActor
:
actor
.
trigger
(
newInD
ata
)
actor
.
trigger
(
(
channel
,
d
ata
)
)
class
JoinUntilStopSignal
(
AbstractActor
):
...
...
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