Skip to content
Snippets Groups Projects
Commit f0e07339 authored by Philip ABBET's avatar Philip ABBET
Browse files

Refactoring: Rename beat.core.execution.Executor into .DockerExecutor

parent 87adcc70
No related branches found
No related tags found
No related merge requests found
......@@ -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.DockerExecutor` 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
......
......@@ -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 DockerExecutor(object):
"""DockerExecutors runs the code given an execution block information, externally
Parameters:
......
File mode changed from 100755 to 100644
......@@ -46,7 +46,7 @@ import numpy
import unittest
from ..experiment import Experiment
from ..execution import Executor
from ..execution import DockerExecutor
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 = DockerExecutor(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)
......
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