Skip to content

fix: Update latency check to use CLAIMED status#680

Open
evanh wants to merge 2 commits into
mainfrom
evanh/fix/add-claimed-to-latency-check
Open

fix: Update latency check to use CLAIMED status#680
evanh wants to merge 2 commits into
mainfrom
evanh/fix/add-claimed-to-latency-check

Conversation

@evanh
Copy link
Copy Markdown
Member

@evanh evanh commented Jun 5, 2026

There was a chance that the latency metric would be very spiky if a message was moving between the PENDING and CLAIMED status. Update the check to use both statuses so the latency stays consistent.

There was a chance that the latency metric would be very spiky if a message was moving between the
PENDING and CLAIMED status. Update the check to use both statuses so the latency stays consistent.
@evanh evanh requested a review from a team as a code owner June 5, 2026 16:55
Comment thread src/store/tests.rs
activations[2].status = ActivationStatus::Claimed;
activations[2].received_at = now - Duration::from_secs(50);
assert!(store.store(activations).await.is_ok());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should there also be a test for the claimed task having the highest latency?

Comment thread src/config.rs
max_delayed_task_allowed_sec: 3600,
max_message_size: 5000000,
grpc_max_message_size: 10 * 1024 * 1024, // 10MB
grpc_max_message_size: 12 * 1024 * 1024, // 12MB
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this on purpose?

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