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

Visibility timeout heartbeat #124

Merged
merged 20 commits into from
Apr 23, 2024
Merged

Conversation

CarlosGamero
Copy link
Collaborator

@CarlosGamero CarlosGamero commented Apr 22, 2024

@CarlosGamero CarlosGamero self-assigned this Apr 22, 2024
@CarlosGamero CarlosGamero changed the title Visibility timeout heartbeat [IN PROGRESS] Visibility timeout heartbeat Apr 22, 2024
@CarlosGamero CarlosGamero marked this pull request as ready for review April 23, 2024 13:55
@CarlosGamero CarlosGamero changed the title [IN PROGRESS] Visibility timeout heartbeat Visibility timeout heartbeat Apr 23, 2024
@CarlosGamero CarlosGamero requested a review from kibertoad April 23, 2024 14:19
@@ -1,6 +1,6 @@
{
"name": "@message-queue-toolkit/sns",
"version": "12.1.1",
"version": "13.0.0",
Copy link
Owner

Choose a reason for hiding this comment

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

before we release this version, let's also merge #121, so that we don't need to do semver majors in a row

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds great to me 🙇 I will wait to merge this PR

Copy link
Owner

Choose a reason for hiding this comment

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

feel free to merge, just don't hurry releasing it :D.
After you are done, I will address any conflicts if there are on the other PR, and release both changes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, right, this repo doesn't have auto-release 😅 sorry, I was confused, thanks for the clarification 🙏

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Merged, please let me know If can help with conflicts or release 🙇

await consumer2.start()

// wait for both consumers to process message
await waitAndRetry(() => consumer1Counter > 0 && consumer2Counter > 0, 100, 40)
Copy link
Owner

Choose a reason for hiding this comment

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

we should assert that it resolves to true and not just timeouts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The check is done using counters, in the second each case I don't only want to know it is false, we should check that consumer1 was de only who received the message

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.

An important improvement!

@CarlosGamero CarlosGamero merged commit fd40520 into main Apr 23, 2024
5 checks passed
@CarlosGamero CarlosGamero deleted the sqs_visibility_timeout_heartbeat branch April 23, 2024 15:29
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