Skip to content

BM-1859: Clean Bento Inputs #1298

Open
ec2 wants to merge 15 commits intomainfrom
ec2/clean-bento-inputs
Open

BM-1859: Clean Bento Inputs #1298
ec2 wants to merge 15 commits intomainfrom
ec2/clean-bento-inputs

Conversation

@ec2
Copy link
Member

@ec2 ec2 commented Nov 6, 2025

Deletes the inputs which can be quite large (e.g. Signal) when the Order is completed or failed.
It will also delete when it fails preflights in the OrderPicker and when the OrderMonitor decides to skip.

Still testing on personal machine to see how effective this is.

@github-actions github-actions bot changed the title Clean Bento Inputs BM-1859: Clean Bento Inputs Nov 6, 2025
@zeroecco
Copy link
Contributor

zeroecco commented Dec 3, 2025

bento section looks fine to me

@austinabell
Copy link
Contributor

realizing there is a flaw with this in that currently we cache inputs to try to deduplicate, so deleting one may interfere with another if in-between preflight and prove. Will explore alternatives to see if a clean way to get around

@austinabell
Copy link
Contributor

Experimented with uploading duplicate input for each order variant, can work but is pretty messy and very unideal to put more memory pressure on the REST API and unnecessary IO.

Intuition is that perhaps checking the other variant is skipped/failed/completed before deleting might be a better way around this, with the tradeoff that on the race condition both check at the same time, storage is leaked. Will explore that when I work on this next

@austinabell austinabell requested a review from nahoc as a code owner January 29, 2026 19:04
@linear
Copy link

linear bot commented Jan 29, 2026

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