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.core
Commits
f0e07339
Commit
f0e07339
authored
Sep 14, 2017
by
Philip ABBET
Browse files
Refactoring: Rename beat.core.execution.Executor into .DockerExecutor
parent
87adcc70
Changes
4
Hide whitespace changes
Inline
Side-by-side
beat/core/agent.py
View file @
f0e07339
...
...
@@ -203,7 +203,7 @@ class Agent(object):
Parameters:
configuration (object): A *valid*, preloaded
:py:class:`beat.core.execution.Executor` object.
:py:class:`beat.core.execution.
Docker
Executor` object.
host (:py:class:Host): A configured docker host that will execute the
user process. If the host does not have access to the required
...
...
beat/core/execution.py
View file @
f0e07339
...
...
@@ -56,8 +56,8 @@ from beat.backend.python.helpers import create_outputs_from_configuration
from
beat.backend.python.helpers
import
CacheAccess
class
Executor
(
object
):
"""Executors runs the code given an execution block information, externally
class
Docker
Executor
(
object
):
"""
Docker
Executors runs the code given an execution block information, externally
Parameters:
...
...
beat/core/test/test_docker.py
100755 → 100644
View file @
f0e07339
File mode changed from 100755 to 100644
beat/core/test/test_execution.py
View file @
f0e07339
...
...
@@ -46,7 +46,7 @@ import numpy
import
unittest
from
..experiment
import
Experiment
from
..execution
import
Executor
from
..execution
import
Docker
Executor
from
..hash
import
hashFileContents
from
..data
import
CachedDataSource
from
..dock
import
Host
...
...
@@ -130,7 +130,7 @@ class TestExecution(unittest.TestCase):
# can we execute it?
results
=
[]
for
key
,
value
in
scheduled
.
items
():
executor
=
Executor
(
self
.
host
,
prefix
,
value
[
'configuration'
],
tmp_prefix
,
executor
=
Docker
Executor
(
self
.
host
,
prefix
,
value
[
'configuration'
],
tmp_prefix
,
dataformat_cache
,
database_cache
,
algorithm_cache
,
proxy_mode
=
self
.
proxy_mode
)
assert
executor
.
valid
,
'
\n
* %s'
%
'
\n
* '
.
join
(
executor
.
errors
)
...
...
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