Skip to content

Conversation

@mihaita-tinta
Copy link

Hello. I am adding a draft PR for exposing some failure info (exception/number of retries). If this looks good for jdbc, I can extend it for other modulith events-* flavours.

When users of the library will call IncompleteEventPublications.resubmitIncompletePublications we can take into account the number of failed attempts, the error and when it happened. Incomplete publications could be retriggered with a predicate like:

incompletePublications.resubmitIncompletePublications(e -> {
				if (e.getFailedAttempts().size() > 10) {
					return false;
				}
				return e.getFailedAttempts().stream()
						.map(FailedAttemptInfo::getFailureReason)
						.anyMatch(reason-> reason instanceof SomeOtherException);
			});

Fixes #1458

mihaita.tinta added 10 commits December 4, 2025 16:32
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
@mihaita-tinta mihaita-tinta force-pushed the users/mihaita.tinta/1458 branch from 3d68bb2 to 701848e Compare December 4, 2025 14:37
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce FailedAttemptInfo for better retries

1 participant