Github user poornachandra commented on a diff in the pull request:

    https://github.com/apache/twill/pull/23#discussion_r98088342
  
    --- Diff: 
twill-yarn/src/main/java/org/apache/twill/internal/appmaster/RunningContainers.java
 ---
    @@ -113,9 +117,11 @@ public Integer apply(BitSet input) {
       private final Location applicationLocation;
       private final Set<String> runnableNames;
       private final Map<String, Map<String, String>> logLevels;
    +  private final Map<String, Integer> maxRetries;
    --- End diff --
    
    Instance ids for runnable instances go from `0` to `num-instances - 1`. If 
an instance gets restarted, then it retains the same instance id. Using this 
instance id we can track the number of times a particular instance was 
restarted.
    
    You can get the instance id in `handleCompleted` method by using 
`getInstanceId(RunId runId)` method. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to