Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Blocked entries methods #338

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

RomainWilbert
Copy link
Contributor

I added 2 methods in TransactionOutbox :

  • unblockAll : unblock all blocked entries for retry
  • getBlockedEntries : returns list of blocked entries

This could be usefull to create a retry screen for blocked entries

@RomainWilbert RomainWilbert deleted the feat-blocked-entries branch November 10, 2022 14:21
@RomainWilbert RomainWilbert restored the feat-blocked-entries branch November 10, 2022 14:25
@RomainWilbert RomainWilbert reopened this Nov 10, 2022
+ ALL_FIELDS
+ " FROM "
+ tableName
+ " WHERE blocked = true AND processed = false ORDER BY lastAttemptTime DESC LIMIT ? OFFSET ?")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to handle different dialects (LIMIT isn't supported by Oracle).

Sorry @RomainWilbert; I got around to re-checking this PR after the Oracle PR was merged.

* .uniqueRequestId("my-request")
* .schedule(MyService.class)
* .runMyMethod("with", "some", "arguments");</pre>
* <pre>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lost formatting here

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.

2 participants