Skip to content

Incorrect behavior of override_with argument in dask.config.get #10519

Closed

Description

@bnaul

I think #10499 may have introduced an accidental change in the behavior of dask.config.get (I think dask/dask-kubernetes#816 is referring to the same thing, albeit somewhat cryptically 🙂):

# Previous behavior, 2023.9.1 and earlier
HEAD is now at 3316c38f0 bump version to 2023.9.1
(.venv)  ➜  dask git:(2023.9.1) ✗ python -c 'import dask; print(dask.config.get("array.chunk-size", override_with=None))'
128MiB

# New version after this PR
HEAD is now at 216c7c939 Release 2023.9.2 (#10514)
(.venv)  ➜  dask git:(2023.9.2) ✗ python -c 'import dask; print(dask.config.get("array.chunk-size", override_with=None))'
None

I believe this also contradicts the docstring so I think it's a clear bug and not just a neutral change

If override_with is not None this value will be passed straight back

cc @crusaderky @jrbourbeau @fjetter

Activity

  1. added
    needs triage
    on Sep 19, 2023
  2. self-assigned this
    on Sep 19, 2023
  3. jrbourbeau commented on Sep 19, 2023

    @jrbourbeau
    Member

    Thanks for surfacing @bnaul -- @crusaderky mentioned offline he'll look at this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions