Commit c3035a58 authored by Philip ABBET's avatar Philip ABBET
Browse files

Optimization: cache the discovery of docker images

parent e263080b
......@@ -1365,7 +1365,7 @@ class JobSplit(models.Model):
def process(self, cache=settings.CACHE_ROOT):
def process(self, cache=settings.CACHE_ROOT, docker_images_cache=None):
'''Process assigned job splits using beat.core
This task executes the user algorithm on a subprocess. It also serves
......@@ -1419,7 +1419,7 @@ class JobSplit(models.Model):
if is None: = Host() = Host(images_cache=docker_images_cache), 'TEST_CONFIGURATION', False)))
self.executor = beat.core.execution.Executor(settings.PREFIX, config,
......@@ -115,4 +115,4 @@ def main(user_input=None):
signal.signal(signal.SIGTERM, handler)
signal.signal(signal.SIGINT, handler)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment