Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f7c2b4e0
authored
Oct 11, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start task with deadline policy.
parent
33a1d208
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
templates/normal/experiment.cpp
+6
-1
No files found.
templates/normal/experiment.cpp
View file @
f7c2b4e0
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment