Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.backend.python
Commits
040d6b72
Commit
040d6b72
authored
Jul 11, 2019
by
Samuel GAIST
Browse files
[helpers] Create remotely synced output if socket is given
parent
b5fc0451
Changes
1
Show whitespace changes
Inline
Side-by-side
beat/backend/python/helpers.py
View file @
040d6b72
...
...
@@ -58,6 +58,7 @@ from .inputs import InputGroup
from
.outputs
import
SynchronizationListener
from
.outputs
import
OutputList
from
.outputs
import
Output
from
.outputs
import
RemotelySyncedOutput
from
.algorithm
import
Algorithm
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -379,7 +380,13 @@ def create_inputs_from_configuration(
def
create_outputs_from_configuration
(
config
,
algorithm
,
prefix
,
cache_root
,
input_list
=
None
,
data_loaders
=
None
config
,
algorithm
,
prefix
,
cache_root
,
input_list
=
None
,
data_loaders
=
None
,
loop_socket
=
None
,
):
data_sinks
=
[]
...
...
@@ -474,6 +481,17 @@ def create_outputs_from_configuration(
if
not
status
:
raise
IOError
(
"Cannot create cache sink '%s'"
%
details
[
"path"
])
if
loop_socket
is
not
None
:
output_list
.
add
(
RemotelySyncedOutput
(
name
,
data_sink
,
loop_socket
,
synchronization_listener
=
synchronization_listener
,
force_start_index
=
start_index
,
)
)
else
:
output_list
.
add
(
Output
(
name
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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