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

Include number of unprocessed payloads in the error message #278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saruniitr
Copy link
Contributor

@saruniitr saruniitr commented Sep 27, 2024

Change description

If the queue is completely stopped and the number of unprocessed payloads building up then the current error message cannot convey that so include the payload count in the error message.

There is also no need to emit message for each unprocessed payload because when we process them we batch together into a single message so the delay is same for all.

Note: We also prioritize sending SPIRE messages, as in before looking to batch unprocessed payloads we check if we are awaiting reply or any new messages from SPIRE that need sending. If they are all concluded then only we continue. This means during busy times then payload count can increase for a period and it is expected but should get cleared as the traffic subsides.

There is also no need to emit message for each unprocessed payload
because when we process them we batch together into a single message
so the delay is same for all.
@saruniitr saruniitr marked this pull request as draft September 27, 2024 15:55
Copy link
Contributor

@depsiatwal depsiatwal left a comment

Choose a reason for hiding this comment

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

lgtm

@saruniitr saruniitr marked this pull request as ready for review September 30, 2024 09:01
Copy link
Contributor

@Tllew Tllew left a comment

Choose a reason for hiding this comment

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

Looks good to me

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