Skip to content

Commit fa2383d

Browse files
committed
retrieve model level info from modeltable
1 parent 0169bd9 commit fa2383d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/webapp/routers/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,9 @@ def read_inst_model_outputs(
362362
# TODO make a query to databricks to retrieve status.
363363
ret_val.append(
364364
{
365-
"inst_id": uuid_to_str(elem.inst_id),
366-
"m_name": elem.name,
365+
# JobTable doesn't have inst_id, so we retrieve that from the model query.
366+
"inst_id": uuid_to_str(query_result[0][0].inst_id),
367+
"m_name": query_result[0][0].name,
367368
"run_id": elem.id,
368369
"created_by": uuid_to_str(elem.created_by),
369370
"triggered_at": elem.triggered_at,

0 commit comments

Comments
 (0)