From f7c2b4e0e1a5a658bb16f6e7a6decb69456e8918 Mon Sep 17 00:00:00 2001 From: Tobias Langer Date: Tue, 11 Oct 2016 21:26:34 +0200 Subject: [PATCH] Start task with deadline policy. --- templates/normal/experiment.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/normal/experiment.cpp b/templates/normal/experiment.cpp index 93cbf7f..8558a46 100644 --- a/templates/normal/experiment.cpp +++ b/templates/normal/experiment.cpp @@ -183,7 +183,12 @@ static void TaskStarter() task_arguments[i][count - 1] = std::make_pair(i,count); auto job = node.GetJob(ACTION_ID + i + 1, DOMAIN_ID); - int tmp; auto t = node.Start(job, &task_arguments[i][count - 1], &tmp); + /* Detached TaskAttribute so we don't have to wait for task completion. */ + embb::mtapi::TaskAttributes detached_attribute; + // detached_attribute.SetDetached(true); + detached_attribute.SetPolicy(deadline_policy[i]); + + int tmp; auto t = node.Start(job, &task_arguments[i][count - 1], &tmp, detached_attribute); /* Store task to wait for it. */ running.push_back(t); -- libgit2 0.26.0