Hi Sam,

You are right, currently Twill will keep retrying. Would you mind open a JIRA 
for the improvement request? Thanks

Terence

Sent from my iPhone

> On Apr 29, 2016, at 1:21 PM, Sam William <[email protected]> wrote:
> 
> Hi,
> Im using Twill to run a batch job on a Yarn cluster.  The container gets 
> killed sometimes because the memory requested was not enough.  I see that 
> twill keeps retrying  infinitely.  Is there a way I can ask the framework not 
> to retry ? Looking at the code, I  see this 
> 
> in RunningContainers
> 
> if (shouldRetry(exitStatus)) {
>  LOG.info("Re-request the container {} for exit code {}.", containerId, 
> exitStatus);
>  restartRunnables.add(lookup.keySet().iterator().next());
> }
> 
> Depending on the exit status, we might be restating the containers again and 
> again.
> 
> 
> Sam

Reply via email to