Allow configuring multi-plots batch size

This commit is contained in:
allegroai 2023-07-26 18:33:10 +03:00
parent a17485b1bd
commit dbe1c6f00f
2 changed files with 5 additions and 2 deletions

View File

@ -32,6 +32,8 @@ events_retrieval {
max_raw_scalars_size: 200000
scroll_id_key: "cTN5VEtWEC6QrHvUl0FTx9kNyO0CcCK1p57akxma"
multi_plots_batch_size: 1000
}
# if set then plot str will be checked for the valid json on plot add

View File

@ -570,7 +570,9 @@ def _get_multitask_plots(
sort=[{"iter": {"order": "desc"}}],
scroll_id=scroll_id,
no_scroll=no_scroll,
size=10000,
size=config.get(
"services.events.events_retrieval.multi_plots_batch_size", 1000
),
)
return_events = _get_top_iter_unique_events_per_task(
result.events, max_iters=last_iters, task_names=task_names
@ -776,7 +778,6 @@ def get_debug_images_v1_8(call, company_id, _):
sort=[{"iter": {"order": "desc"}}],
last_iter_count=iters,
scroll_id=scroll_id,
size=10000,
)
return_events = result.events