Commit 3dc343b5 authored by Philip ABBET's avatar Philip ABBET
Browse files

Update to the latest beat.core changes

parent 8ffb4d7b
......@@ -1422,7 +1422,7 @@ class JobSplit(models.Model):
JobSplit.host = Host(images_cache=docker_images_cache)
JobSplit.host.setup(raise_on_errors=not(getattr(settings, 'TEST_CONFIGURATION', False)))
self.executor = beat.core.execution.Executor(settings.PREFIX, config,
self.executor = beat.core.execution.Executor(JobSplit.host, settings.PREFIX, config,
cache)
if not self.executor.valid:
......@@ -1445,7 +1445,6 @@ class JobSplit(models.Model):
with self.executor:
self.start()
result = self.executor.process(
JobSplit.host,
virtual_memory_in_megabytes=queue.memory_limit,
max_cpu_percent=int(100*float(queue.cores_per_slot)), #allows for 150%
timeout_in_minutes=queue.time_limit,
......
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