-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Add a rest endpoint to return checkpoint in batches #19457
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
007aff1
to
4c6641d
Compare
fn path(&self) -> &'static str { | ||
"/checkpoints/full/batch" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably just want the path to be "/checkpoints/full" to be consistent with the other apis
pub struct GetCheckpointFullBatchQueryParameters { | ||
pub start: CheckpointSequenceNumber, | ||
pub batch_size: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at the other list apis (checkpoints as an example) to match the param naming
pub struct GetCheckpointFullBatchQueryParameters { | ||
pub start: CheckpointSequenceNumber, | ||
pub batch_size: u32, | ||
pub max_wait_ms: Option<u64>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed offline lets punt the long polling till later
Description
This PR adds a rest endpoint in full node to return full checkpoints in batches. Additionally, it adds a query param to control server side wait timeout if there is no data available to reduce network traffic.