mirror of
https://github.com/google/nomulus
synced 2026-01-05 04:56:03 +00:00
Refactor FlowRunner transaction invocation (#2612)
Stop calling `transact` if already in a transaction.
This commit is contained in:
@@ -75,7 +75,8 @@ public class FlowRunner {
|
||||
flowReporter.recordToLogs();
|
||||
}
|
||||
eppMetricBuilder.setCommandNameFromFlow(flowClass.getSimpleName());
|
||||
if (!isTransactional) {
|
||||
// We may already be in a transaction, e.g., when invoked by DeleteExpiredDomainsAction.
|
||||
if (!isTransactional || jpaTransactionManager.inTransaction()) {
|
||||
return EppOutput.create(flowProvider.get().run());
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user