@@ -76,7 +76,7 @@ void RAI_EnforceTimeoutORT(RedisModuleCtx *ctx, RedisModuleEvent eid, uint64_t s
76
76
// Set termination flag, validate that ONNX API succeeded (returns NULL)
77
77
RedisModule_Assert (ort -> RunOptionsSetTerminate (run_sessions_ctx [i ]-> runOptions ) ==
78
78
NULL );
79
- RedisModule_Log (NULL , "notice" , "run time is: %lld\n" ,
79
+ RedisModule_Log (NULL , "notice" , "run time when killing is: %lld\n" ,
80
80
curr_time - run_sessions_ctx [i ]-> queuingTime );
81
81
__atomic_store_n (run_sessions_ctx [i ]-> runState , RUN_SESSION_TERMINATED ,
82
82
__ATOMIC_RELAXED );
@@ -119,7 +119,8 @@ void RAI_ResetRunSessionCtxORT(long run_session_index) {
119
119
state = __atomic_load_n (entry -> runState , __ATOMIC_RELAXED );
120
120
} while (state != RUN_SESSION_ACTIVE && state != RUN_SESSION_TERMINATED );
121
121
long long time_now = mstime ();
122
- RedisModule_Log (NULL , "notice" , "run time is: %lld\n" , time_now - entry -> queuingTime );
122
+ RedisModule_Log (NULL , "notice" , "run time when resetting: %lld\n" ,
123
+ time_now - entry -> queuingTime );
123
124
ort -> ReleaseRunOptions (entry -> runOptions );
124
125
__atomic_store_n (& (entry -> queuingTime ), LLONG_MAX , __ATOMIC_RELAXED );
125
126
__atomic_store_n (entry -> runState , RUN_SESSION_AVAILABLE , __ATOMIC_RELAXED );
0 commit comments