Skip to content

Commit

Permalink
Merge branch 'main' into metrics-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabala1979 committed Aug 7, 2023
2 parents 1e50c93 + 5653128 commit 36a7bfd
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 203 deletions.
6 changes: 4 additions & 2 deletions numaprom/udf/threshold.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ def threshold(_: list[str], datum: Datum) -> list[tuple[str, bytes]]:
)
payload.set_header(Header.STATIC_INFERENCE)
payload.set_status(Status.RUNTIME_ERROR)
increase_redis_conn_error(_VERTEX)
return orjson.dumps(payload, option=orjson.OPT_SERIALIZE_NUMPY)
return [
(TRAIN_VTX_KEY, orjson.dumps(train_payload)),
(POSTPROC_VTX_KEY, _get_static_thresh_payload(payload, metric_config)),
]
except Exception as ex:
LOGGER.exception(
"{uuid} - Unhandled exception while fetching threshold artifact, "
Expand Down
Loading

0 comments on commit 36a7bfd

Please sign in to comment.