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

Reduce references to self.state_manager.inner #1060

Conversation

adam-singer
Copy link
Contributor

@adam-singer adam-singer commented Jun 26, 2024

Description

Removed unused test method and relocated notify function in add_action.

Fixes #1059

Type of change

Please delete options that aren't relevant.

  • Refactor

Checklist

  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

Removed unused test method and relocated notify function in `add_action`.
@adam-singer adam-singer requested review from allada and zbirenbaum June 26, 2024 21:28
Copy link
Contributor

@zbirenbaum zbirenbaum left a comment

Choose a reason for hiding this comment

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

Lets hold off on this. I don't love removing one notify call to add three more. We should plan out a proper API for this so that it doesn't create more debt when attempting to move to the subscribe API later.

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Cargo Dev / macos-13, Installation / macos-13, Local / ubuntu-22.04, Publish image, Publish nativelink-worker-init, Publish nativelink-worker-lre-cc, Remote / large-ubuntu-22.04

Copy link
Contributor Author

@adam-singer adam-singer left a comment

Choose a reason for hiding this comment

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

There is already notify calls in that code path, can refactor it to be single notify tho it requires refactoring the add action call so the flow is easier to follow. I prefer to land this to get simple scheduler out of the way for integration

Reviewable status: 0 of 1 LGTMs obtained

Copy link
Contributor

@zbirenbaum zbirenbaum left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@adam-singer adam-singer merged commit 2eefa75 into TraceMachina:main Jun 28, 2024
30 checks passed
@adam-singer adam-singer deleted the adams/reduce-state-manager-inner-usages branch June 28, 2024 17:01
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.

Reduce references to self.state_manager.inner
2 participants