myriad-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kens...@apache.org
Subject [1/2] incubator-myriad git commit: Prepended FrameworkName to the task-name
Date Wed, 18 Nov 2015 19:28:15 GMT
Repository: incubator-myriad
Updated Branches:
  refs/heads/master fb93291e9 -> 7e54db015


Prepended FrameworkName to the task-name


Project: http://git-wip-us.apache.org/repos/asf/incubator-myriad/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-myriad/commit/fe941a69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-myriad/tree/fe941a69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-myriad/diff/fe941a69

Branch: refs/heads/master
Commit: fe941a69f04d3040edda836c0cca8911ad9730c7
Parents: fb93291
Author: Brandon Gulla <brandon@brandongulla.com>
Authored: Wed Nov 18 09:33:50 2015 -0500
Committer: Brandon Gulla <brandon@brandongulla.com>
Committed: Wed Nov 18 09:33:50 2015 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/myriad/scheduler/TaskFactory.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-myriad/blob/fe941a69/myriad-scheduler/src/main/java/org/apache/myriad/scheduler/TaskFactory.java
----------------------------------------------------------------------
diff --git a/myriad-scheduler/src/main/java/org/apache/myriad/scheduler/TaskFactory.java b/myriad-scheduler/src/main/java/org/apache/myriad/scheduler/TaskFactory.java
index 4990d42..00de037 100644
--- a/myriad-scheduler/src/main/java/org/apache/myriad/scheduler/TaskFactory.java
+++ b/myriad-scheduler/src/main/java/org/apache/myriad/scheduler/TaskFactory.java
@@ -184,7 +184,7 @@ public interface TaskFactory {
       CommandInfo commandInfo = getCommandInfo(serviceProfile, ports);
       ExecutorInfo executorInfo = getExecutorInfoForSlave(frameworkId, offer, commandInfo);
 
-      TaskInfo.Builder taskBuilder = TaskInfo.newBuilder().setName("task-" + taskId.getValue()).setTaskId(taskId).setSlaveId(
+      TaskInfo.Builder taskBuilder = TaskInfo.newBuilder().setName(cfg.getFrameworkName()
+ "-task-" + taskId.getValue()).setTaskId(taskId).setSlaveId(
           offer.getSlaveId());
 
       return taskBuilder


Mime
View raw message