Skip to content
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

Merged
merged 10 commits into from
Jan 22, 2024

Conversation

schoren
Copy link
Collaborator

@schoren schoren commented Jan 22, 2024

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

@schoren schoren requested a review from xoscar January 22, 2024 21:20
Copy link
Collaborator

@xoscar xoscar left a 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!

Copy link
Member

@mathnogueira mathnogueira left a 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

Makefile Outdated Show resolved Hide resolved
server/executor/test_pipeline.go Outdated Show resolved Hide resolved
server/executor/test_pipeline.go Outdated Show resolved Hide resolved

if executor.RunWasUserCancelled(existingRun) {
existingRun.LastError = nil
Copy link
Member

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?

Copy link
Collaborator Author

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

@schoren schoren merged commit 2d6b79f into main Jan 22, 2024
37 checks passed
@schoren schoren deleted the agent-stop-polling branch January 22, 2024 22:35
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