Skip to content

Use format_bytes from dask instead of distributed#416

Merged
martindurant merged 1 commit intodask:mainfrom
TomAugspurger:fix/format_bytes-deprecation
Aug 13, 2021
Merged

Use format_bytes from dask instead of distributed#416
martindurant merged 1 commit intodask:mainfrom
TomAugspurger:fix/format_bytes-deprecation

Conversation

@TomAugspurger
Copy link
Member

dask/distributed#4966 deprecated
distributed.utils.format_bytes. We should use the version from
dask.utils. I didn't check the exact version of Dask it was added, but
it was >2 years ago, so I think we're OK.

dask/distributed#4966 deprecated
`distributed.utils.format_bytes`. We should use the version from
`dask.utils`. I didn't check the exact version of Dask it was added, but
it was >2 years ago, so I think we're OK.
Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @TomAugspurger! This look good. I noticed dask_gateway_server has its own format_bytes utility:

that can probably also be removed in favor of using Dask's directly

@TomAugspurger
Copy link
Member Author

I might be wrong, but I think that dask-gateway-server doesn't depend on dask / distributed at all (

install_requires = ["aiohttp", "colorlog", "cryptography", "traitlets"]
).

@jrbourbeau
Copy link
Member

Whoops, in that case nvm : )

@martindurant martindurant merged commit 4dc8138 into dask:main Aug 13, 2021
@TomAugspurger TomAugspurger deleted the fix/format_bytes-deprecation branch August 14, 2021 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants