Skip to content

Commit 4bc885a

Browse files
authored
Merge branch 'master' into DFPL-2864
2 parents 4dec7ac + 1e6ef2d commit 4bc885a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

service/src/main/java/uk/gov/hmcts/reform/fpl/config/SystemUserRoleAssignment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import lombok.extern.slf4j.Slf4j;
66
import org.springframework.beans.factory.annotation.Autowired;
77
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
8+
import org.springframework.retry.annotation.Retryable;
89
import org.springframework.stereotype.Component;
910
import uk.gov.hmcts.reform.fpl.service.RoleAssignmentService;
1011

@@ -18,6 +19,7 @@ public class SystemUserRoleAssignment {
1819
private final RoleAssignmentService roleAssignmentService;
1920

2021
@PostConstruct
22+
@Retryable(retryFor = Exception.class, label = "Create system update user in AM")
2123
public void init() {
2224
try {
2325
log.info("Attempting to assign system-update user role");

0 commit comments

Comments
 (0)