| 219 | } |
| 220 | |
| 221 | void MultiClientSessionContext::SetIdState(const IdState& id_state) { |
| 222 | CHECK(Singleton<IDMgr>::Get() != nullptr); |
| 223 | CHECK(Singleton<TaskStreamIndexManager>::Get() != nullptr); |
| 224 | CHECK(Singleton<LazyJobBuildAndInferCtxMgr>::Get() != nullptr); |
| 225 | Singleton<IDMgr>::Get()->TryUpdateIdAndTaskIndex(&id_state); |
| 226 | Singleton<TaskStreamIndexManager>::Get()->TryUpdateTaskStreamIndex(id_state.stream_index_state_); |
| 227 | Singleton<LazyJobBuildAndInferCtxMgr>::Get()->TryUpdateJobIdCount(id_state.job_id_state_); |
| 228 | } |
| 229 | |
| 230 | } // namespace oneflow |
no test coverage detected