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);