Skip to content

Convert storage into InMemoryStorage before copying to the local#213

Merged
HideakiImamura merged 2 commits intooptuna:mainfrom
porink0424:fix/dask-storage-sqlite-backend
Mar 21, 2025
Merged

Convert storage into InMemoryStorage before copying to the local#213
HideakiImamura merged 2 commits intooptuna:mainfrom
porink0424:fix/dask-storage-sqlite-backend

Conversation

@porink0424
Copy link
Copy Markdown
Member

Motivation

Fixes #211

Description of the changes

When copying the storage from the cluster to local, the storage itself was serialized and transferred, but the SQLite DB file referenced by RDBStorage was not included. This caused issues like the one in issue #211.
By converting the storage to InMemoryStorage on the cluster side before copying, the process now works correctly.

@c-bata
Copy link
Copy Markdown
Member

c-bata commented Mar 21, 2025

@HideakiImamura Could you review this PR?

@c-bata c-bata added the bug Something isn't working label Mar 21, 2025
Copy link
Copy Markdown
Member

@HideakiImamura HideakiImamura left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. LGTM.

@HideakiImamura HideakiImamura merged commit 0ed749b into optuna:main Mar 21, 2025
30 checks passed
@HideakiImamura HideakiImamura added this to the v4.3.0 milestone Mar 21, 2025
@porink0424 porink0424 deleted the fix/dask-storage-sqlite-backend branch March 26, 2025 01:15
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.

DaskStorage.get_base_storage doesn't contain study when using sqlite backend

3 participants