-
Notifications
You must be signed in to change notification settings - Fork 72
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: handle stop run and skip polling during polling step #3552
Conversation
2a693a9
to
6c521ca
Compare
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.
@schoren thanks for the video it looks great, I didn't see something concerning or out of place while reviewing, so I'm approving!
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, just a few minor typos and questions
|
||
if executor.RunWasUserCancelled(existingRun) { | ||
existingRun.LastError = 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.
So even if something went wrong, we gonna ignore it if the process was canceled, right?
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.
If there was an error, it would happen before the cancellation, so the test would be already stopped and the cancelation would be ignored before this
This PR fixes the polling step in the agent and core server so it can correctly handle skip polling and stop requests.
Loom video
https://www.loom.com/share/2e6c88596633449f87928dae87b89250