FINERACT-2602: Remove orphaned COB locks after job completion#5858
FINERACT-2602: Remove orphaned COB locks after job completion#5858oleksii-novikov-onix wants to merge 1 commit into
Conversation
49aae2d to
502ab61
Compare
|
|
||
| private String error; | ||
| private LocalDate cobBusinessDate; | ||
| private Boolean nullCobBusinessDate; |
| public RepeatStatus execute(@NonNull final StepContribution contribution, @NonNull final ChunkContext chunkContext) throws Exception { | ||
| final int removedCount = accountLockService.removeOrphanedLocksForProcessedAccounts(); | ||
| if (removedCount > 0) { | ||
| log.info("Unlocked {} account(s) that completed COB processing but remained locked", removedCount); |
There was a problem hiding this comment.
use debug level logging please...
| } | ||
|
|
||
| @Override | ||
| @Transactional(propagation = Propagation.REQUIRES_NEW) |
There was a problem hiding this comment.
Do we need to start a new transaction for this?
502ab61 to
57ed03e
Compare
|
@oleksii-novikov-onix @adamsaghy The approach here is solid. A few thoughts on the open review comments:
Also agree on |
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.