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

Use process polling to ensure DVCLive only PIDs are still running #3045

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Jan 4, 2023

Closes #2991 by addressing:

I think we need a better way to detect failures eventually (check pid from time to time?)

Demo

Screen.Recording.2023-01-04.at.12.21.39.pm.mov

@mattseddon mattseddon added the bug Something isn't working label Jan 4, 2023
@mattseddon mattseddon self-assigned this Jan 4, 2023
pollSignalFileForProcess(this.dvcLiveOnlySignalFile, () => {
this.dvcLiveOnlyCleanupInitialized = false
if (this.hasRunningExperiment()) {
this.cliData.update()
Copy link
Member Author

Choose a reason for hiding this comment

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

[F] The signal file has now been removed so we request the data again to flush out the fact that an experiment is no longer running.

@mattseddon mattseddon marked this pull request as ready for review January 4, 2023 02:06
Copy link
Contributor

@julieg18 julieg18 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!

@mattseddon mattseddon enabled auto-merge (squash) January 4, 2023 20:00
@codeclimate
Copy link

codeclimate bot commented Jan 4, 2023

Code Climate has analyzed commit 3ebec90 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 95.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.5%.

View more on Code Climate.

@mattseddon mattseddon merged commit 14145cc into main Jan 4, 2023
@mattseddon mattseddon deleted the use-polling branch January 4, 2023 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-selecting experiments
3 participants