flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StephanEwen <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2066][core] Add delay between execution...
Date Tue, 06 Oct 2015 08:54:34 GMT
Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1223#discussion_r41239449
  
    --- Diff: flink-java/src/main/java/org/apache/flink/api/java/ExecutionEnvironment.java
---
    @@ -199,6 +199,31 @@ public int getNumberOfExecutionRetries() {
     	}
     	
     	/**
    +	 * Sets the delay that failed tasks are re-executed. A value of
    +	 * zero effectively disables fault tolerance. A value of {@code -1}
    +	 * indicates that the system default value (as defined in the configuration)
    +	 * should be used.
    +	 *
    +	 * @param executionRetryDelay
    +	 * 		The delay of time the system will wait to re-execute failed
    +	 * 		tasks.
    +	 */
    +	public void setExecutionRetryDelay(long executionRetryDelay){
    +		config.setExecutionRetryDelay(executionRetryDelay);
    +	}
    +	
    +	/**
    +	 * Gets the delay time in milliseconds the system will wait to re-execute failed tasks.
    +	 * A value of {@code -1} indicates that the system default value (as defined
    +	 * in the configuration) should be used.
    +	 *
    +	 * @return The delay time the system will wait to re-execute failed tasks.
    +	 */
    +	public long getExecutionRetryDelay(){
    --- End diff --
    
    See above


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message