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
Fix CachedStorage
skipping trial param row insertion on cache miss.
#1498
Fix CachedStorage
skipping trial param row insertion on cache miss.
#1498
Conversation
Thank you for creating this PR. |
Ah, right. You mean that we must insert after checking for compatibility to let the other workers know. Thanks. |
PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the quick fix. LGTM!
There was a problem hiding this 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! I confirmed that non recorded trials do not emerge on my local MySQL server. The validation script is that given by @nandnor93 in #1488 (comment). (Thanks @nandnor93!) LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also confirmed that this implementation correctly works with PostgreSQL. LGTM!
Motivation
Fixes #1488 (comment).
Description of the changes
Makes sure parameters are flushed/committed even for the first trial that is a "cache miss".
Note
This is only an issue for the first trial in a distributed environment/continuing optimization on an already started/finished study.