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

[Data] Add default parameter values for BlockAccessor.get_metadata #45566

Merged
merged 1 commit into from
May 28, 2024

Conversation

bveeramani
Copy link
Member

@bveeramani bveeramani commented May 25, 2024

Why are these changes needed?

BlockAccessor.get_metadata has two required arguments: input_files and exec_stats. However, we usually pass None to these arguments. To simplify the code, this PR makes the arguments optional and uses None as the default value.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Balaji Veeramani <[email protected]>
@bveeramani bveeramani enabled auto-merge (squash) May 25, 2024 21:27
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label May 25, 2024
@bveeramani bveeramani merged commit b54ee68 into ray-project:master May 28, 2024
7 checks passed
@bveeramani bveeramani deleted the add-defaults-get-metadata branch May 28, 2024 20:00
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 6, 2024
…ay-project#45566)

BlockAccessor.get_metadata has two required arguments: input_files and exec_stats. However, we usually pass None to these arguments. To simplify the code, this PR makes the arguments optional and uses None as the default value.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 6, 2024
…ay-project#45566)

BlockAccessor.get_metadata has two required arguments: input_files and exec_stats. However, we usually pass None to these arguments. To simplify the code, this PR makes the arguments optional and uses None as the default value.

Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Ryan O'Leary <[email protected]>
ryanaoleary pushed a commit to ryanaoleary/ray that referenced this pull request Jun 7, 2024
…ay-project#45566)

BlockAccessor.get_metadata has two required arguments: input_files and exec_stats. However, we usually pass None to these arguments. To simplify the code, this PR makes the arguments optional and uses None as the default value.

Signed-off-by: Balaji Veeramani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants