From 3dc343b519a21cd81a1cf203e9a8b328cd0b6f14 Mon Sep 17 00:00:00 2001
From: Philip ABBET <philip.abbet@idiap.ch>
Date: Fri, 8 Sep 2017 16:28:09 +0200
Subject: [PATCH] Update to the latest beat.core changes

---
 beat/web/backend/models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/beat/web/backend/models.py b/beat/web/backend/models.py
index 2ac9cf1f3..1e2c3a74b 100755
--- a/beat/web/backend/models.py
+++ b/beat/web/backend/models.py
@@ -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,
-- 
GitLab