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

feat(status): prevent duplicate status publishes #224

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Nov 28, 2023

Feature or Problem

This PR adds a simple check before publishing a status to query the previous status and skip publishing if it would be the exact same. This should quiet down the status stream quite a bit for already deployed applications and it should make it a lot easier to follow during debugging.

Related Issues

Fixes #187

Release Information

next release, can be a patch.

Consumer Impact

This PR does add a burden on the status stream with a stream get

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

The status stream was much less noisy during e2e tests, for example during the upgrade e2e test the number of status messages went from 57 to 23. This is impressive as this PR isn't primarily concerned with reducing the number during deployment, we just end up publishing a lot of duplicate statuses.

connorsmith256
connorsmith256 previously approved these changes Nov 28, 2023
src/workers/event_helpers.rs Show resolved Hide resolved
@brooksmtownsend brooksmtownsend merged commit 48bd548 into main Nov 28, 2023
5 checks passed
@brooksmtownsend brooksmtownsend deleted the feat/dedup-status-messages branch November 28, 2023 22:47
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.

Make status stream less noisy
2 participants