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

Experimental support of EnqueueTrial. #86

Merged
merged 9 commits into from
Mar 11, 2020
Merged

Experimental support of EnqueueTrial. #86

merged 9 commits into from
Mar 11, 2020

Conversation

c-bata
Copy link
Owner

@c-bata c-bata commented Mar 10, 2020

refs optuna/optuna#520.
to close #45.

@c-bata
Copy link
Owner Author

c-bata commented Mar 11, 2020

Fixed an Optuna's concurrency problem at optuna/optuna#1014.

@c-bata c-bata changed the title Trial queue AppendTrial and Trial Queue Mar 11, 2020
@c-bata c-bata changed the title AppendTrial and Trial Queue Support AppendTrial and EnqueueTrial Mar 11, 2020
@c-bata c-bata changed the title Support AppendTrial and EnqueueTrial Experimental support of EnqueueTrial. Mar 11, 2020
Comment on lines +508 to +520
// TODO(c-bata): Add `FOR UPDATE` clause.
//
// result := tx.Set("gorm:query_option", "FOR UPDATE").
// First(&trial, "trial_id = ?", trialID)
//
// But SQLite3 doesn't interpret `FOR UPDATE` clause.
// SQLAlchemy can automatically remove it, but Gorm can't.
//
// Another solution is to add `EnableForUpdateClause=false` option.
//
// See following pages for the information.
// * https://github.com/optuna/optuna/pull/1014
// * http://gorm.io/docs/query.html#Extra-Querying-option
Copy link
Owner Author

Choose a reason for hiding this comment

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

[memo] Put a todo comment here.

@c-bata c-bata merged commit d9758c3 into master Mar 11, 2020
@c-bata c-bata deleted the enqueue-trial branch March 11, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trial queue
1 participant