mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-09 04:57:44 +00:00
feat: log api status to mlflow (#860)
* log api status to mlflow to frontend tracking * fix CI --------- Co-authored-by: Xu Yang <xuyang1@microsoft.com>
This commit is contained in:
@@ -75,10 +75,12 @@ class RDAgentTimer:
|
||||
class RDAgentTimerWrapper(SingletonBaseClass):
|
||||
def __init__(self) -> None:
|
||||
self.timer: RDAgentTimer = RDAgentTimer()
|
||||
self.api_fail_count: int = 0
|
||||
self.latest_api_fail_time: datetime | None = None
|
||||
|
||||
def replace_timer(self, timer: RDAgentTimer) -> None:
|
||||
self.timer = timer
|
||||
logger.info("Timer replaced successfully.")
|
||||
|
||||
|
||||
RD_Agent_TIMER_wrapper = RDAgentTimerWrapper()
|
||||
RD_Agent_TIMER_wrapper: RDAgentTimerWrapper = RDAgentTimerWrapper()
|
||||
|
||||
Reference in New Issue
Block a user