update - 解决多个任务同时操作同一个实例,出现的事务问题

This commit is contained in:
wangli 2024-07-03 11:04:54 +08:00
parent 5d33094266
commit 1065db0f6f

View File

@ -53,10 +53,11 @@ public class CustomRetryInterceptor extends AbstractCommandInterceptor {
failedAttempts++; failedAttempts++;
} while (failedAttempts <= numOfRetries); } while (failedAttempts <= numOfRetries);
throw new WorkflowEngineException(ENGINE_ASYNC_COMMAND_EXECUTION_RETRY_GIVE_UP, String.valueOf(numOfRetries));
} catch (Throwable e) { } 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_ERROR, e.getMessage());
} }
throw new WorkflowEngineException(ENGINE_ASYNC_COMMAND_EXECUTION_RETRY_GIVE_UP, String.valueOf(numOfRetries));
} }
protected void waitBeforeRetry(long waitTime) { protected void waitBeforeRetry(long waitTime) {