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

Passing current_node_name when gs is node based #2505

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ax/storage/sqa_store/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,15 @@ def _update_generation_strategy(
"should be saved before generation strategy."
)

curr_index = (
generation_strategy.current_node_name
if generation_strategy.is_node_based
else generation_strategy.current_step_index
)
with session_scope() as session:
session.query(gs_sqa_class).filter_by(id=gs_id).update(
{
"curr_index": generation_strategy.current_step_index,
"curr_index": curr_index,
"experiment_id": experiment_id,
}
)
Expand Down