-
Notifications
You must be signed in to change notification settings - Fork 356
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
feat: add experiment cancel and kill endpoints [DET-3581] #1026
feat: add experiment cancel and kill endpoints [DET-3581] #1026
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.
👍 looks good
addr := actor.Addr("experiments", req.Id).String() | ||
err = a.actorRequest(addr, req, &resp) | ||
if status.Code(err) == codes.NotFound { | ||
return &apiv1.CancelExperimentResponse{}, nil |
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.
question: this is ignored to be in line wanting most endpoints to be Idempotent?
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.
correct because at this point if actor doesn't find it it means that this experiment exists (in DB) but is in a terminal state. how does that sound to you
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.
yeah that sounds perfect to me, easiest behavior for a user to design stuff with imo.
Co-authored-by: Bradley Laney <[email protected]>
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.
👍
Description
Test Plan
Commentary (optional)