sv2000 commented on a change in pull request #2919: [GOBBLIN-1078] Coordination
between task cancel and initialization in Helix Task
URL: https://github.com/apache/incubator-gobblin/pull/2919#discussion_r394050301
##########
File path:
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SingleTask.java
##########
@@ -158,16 +183,32 @@ protected JobState getJobState()
}
public void cancel() {
- if (_taskAttempt != null) {
+ int retryCount = 0 ;
+ int maxRetry = this._dynamicConfig.hasPath(MAX_RETRY_WAITING_FOR_INIT_KEY)
Review comment:
int maxRetry = ConfigUtils.get(this.dynamicConfig,
MAX_RETRY_WAITING_FOR_INIT_KEY, DEFAULT_ MAX_RETRY_WAITING_FOR_INIT_KEY);?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services