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

Ensure that metrics are gathered during abnormal exits #11793

Merged
merged 2 commits into from Mar 25, 2021

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Mar 25, 2021

Problem

As described in #11788, RunTracker.end_run is not called for help, runs with no goals, or runs that end in Ctrl+C. This can prevent metrics gathering.

Solution

Adjust LocalPantsRunner to ensure that the run is ended in the RunTracker before the StreamingWorkunitHandler is torn down.

Result

Fixes #11788.

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

[ci skip-rust]

[ci skip-build-wheels]
[ci skip-rust]

[ci skip-build-wheels]
@stuhood stuhood force-pushed the stuhood/reliable-run-tracker-end branch from cf54749 to bdb0866 Compare March 25, 2021 02:03
@stuhood stuhood merged commit baf2429 into pantsbuild:main Mar 25, 2021
@stuhood stuhood deleted the stuhood/reliable-run-tracker-end branch March 25, 2021 03:26
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.

RunTracker.end_run not called for abnormal exits
2 participants