-
Notifications
You must be signed in to change notification settings - Fork 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
core: allow deleting of evaluations #13492
Conversation
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.
LGTM, this is great @jrasell! Just the usual nits/suggestions
require.Nil(t, obj) | ||
}) | ||
}, | ||
name: "too few eval IDs", |
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.
i find it's easier to grok test cases when the name is the first field
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.
Noted. I think I do it this way because of the process in which I build the tests which starts with what the inputs are. I have no doubt this is done in many places where I have written tests, so something I can look into changing moving forward.
return nil | ||
} | ||
|
||
// evalDeleteSafe ensures an evaluation is safe to delete based on its related |
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.
Would be helpful to have this behavior described in the docs
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.
Yes but I want to do that for both eval reap (GC) and eval delete (operator) so will tackle this separately.
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.
Some early comments, but looking good so far! I will give it a try more thoroughly tomorrow to see how unhappy the scheduler gets with vanishing evals 😄
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.
Amazing work. Sorry for the last second changes and late reviews from me.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR adds the ability to delete evals and adds to the work performed to allow the pausing of the eval and blocked eval brokers.
There is a change made to the signature of the eval reap RPC which we will want to backport in order to make future backport releases easier. Once this PR has been reviewed and approved, I will open this change as a PR separately.
related #11638