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

Messages barrier max time #141

Merged
merged 34 commits into from
May 10, 2024
Merged

Messages barrier max time #141

merged 34 commits into from
May 10, 2024

Conversation

CarlosGamero
Copy link
Collaborator

@CarlosGamero CarlosGamero commented May 9, 2024

Description
If a message fails to be processed, and is there another message waiting for it on the barrier pattern, it will be there waiting forever.

Solution:

  • Add max time a message can be waiting with the retryLater feature

@CarlosGamero CarlosGamero self-assigned this May 9, 2024
@@ -30,6 +31,7 @@ import { AbstractSqsService } from './AbstractSqsService'
const ABORT_EARLY_EITHER: Either<'abort', never> = {
error: 'abort',
}
const DEFAULT_MAX_RETRY_DURATION = 4 * 24 * 60 * 60 // 4 days in seconds
Copy link
Collaborator Author

@CarlosGamero CarlosGamero May 10, 2024

Choose a reason for hiding this comment

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

I think 4 days is the default time a message can be in the queue waiting, will check to make sure

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Confirmed (doc) using the same value on AMQP to have similar behaviour in both, please let me know if you disagree

@CarlosGamero CarlosGamero marked this pull request as ready for review May 10, 2024 13:58
@CarlosGamero CarlosGamero requested a review from kibertoad May 10, 2024 13:58
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@CarlosGamero CarlosGamero requested a review from kibertoad May 10, 2024 15:47
README.md Outdated Show resolved Hide resolved
Copy link
Owner

@kibertoad kibertoad left a comment

Choose a reason for hiding this comment

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

Excellent job as always, Carlos!

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
CarlosGamero and others added 2 commits May 10, 2024 22:51
Co-authored-by: Daria Carlotta Maino <[email protected]>
Co-authored-by: Daria Carlotta Maino <[email protected]>
@CarlosGamero CarlosGamero merged commit 563677b into main May 10, 2024
5 checks passed
@CarlosGamero CarlosGamero deleted the feat/messages_barrier_max_time branch May 10, 2024 21:56
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.

3 participants