update - 解决多个任务同时操作同一个实例,出现的事务问题
This commit is contained in:
parent
5d33094266
commit
1065db0f6f
@ -53,10 +53,11 @@ public class CustomRetryInterceptor extends AbstractCommandInterceptor {
|
||||
|
||||
failedAttempts++;
|
||||
} while (failedAttempts <= numOfRetries);
|
||||
throw new WorkflowEngineException(ENGINE_ASYNC_COMMAND_EXECUTION_RETRY_GIVE_UP, String.valueOf(numOfRetries));
|
||||
} catch (Throwable e) {
|
||||
log.error("Caught exception: {}", e.getMessage(), e);
|
||||
throw new WorkflowEngineException(ENGINE_ASYNC_COMMAND_EXECUTION_ERROR, e.getMessage());
|
||||
}
|
||||
throw new WorkflowEngineException(ENGINE_ASYNC_COMMAND_EXECUTION_RETRY_GIVE_UP, String.valueOf(numOfRetries));
|
||||
}
|
||||
|
||||
protected void waitBeforeRetry(long waitTime) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user