File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ any C++ code.
5252 - [ Async Execute] ( #async-execute )
5353 - [ Request Rescheduling] ( #request-rescheduling )
5454 - [ ` finalize ` ] ( #finalize )
55+ - [ ` is_model_ready ` ] ( #is_model_ready )
5556 - [ Model Config File] ( #model-config-file )
5657 - [ Inference Request Parameters] ( #inference-request-parameters )
5758 - [ Inference Response Parameters] ( #inference-response-parameters )
Original file line number Diff line number Diff line change @@ -596,7 +596,7 @@ Stub::Initialize(bi::managed_external_buffer::handle_t map_handle)
596596 }
597597
598598 // Cache whether is_model_ready() function defined in the Python model.
599- ipc_control_->stub_has_model_ready_fn =
599+ ipc_control_->stub_has_user_model_readiness_fn =
600600 py::hasattr (model_instance_, " is_model_ready" );
601601
602602 initialized_ = true ;
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ struct IPCControlShm {
145145 bool parent_health;
146146 bool uses_env;
147147 bool decoupled;
148- bool stub_has_model_ready_fn ;
148+ bool stub_has_user_model_readiness_fn ;
149149 bi::interprocess_mutex parent_health_mutex;
150150 bi::interprocess_mutex stub_health_mutex;
151151 bi::managed_external_buffer::handle_t stub_message_queue;
Original file line number Diff line number Diff line change @@ -994,7 +994,7 @@ ModelInstanceState::RunUserModelReadinessCheck(bool* is_ready)
994994
995995 // FAST PATH: No user-defined function - return immediately
996996 // (zero IPC overhead)
997- if (!Stub ()->HasUserModelReadyFunction ()) {
997+ if (!Stub ()->HasUserModelReadinessFunction ()) {
998998 *is_ready = true ;
999999 return nullptr ;
10001000 }
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ StubLauncher::Setup()
178178 ipc_control_->decoupled = is_decoupled_;
179179
180180 // Will be set by the stub during initialization
181- ipc_control_->stub_has_model_ready_fn = false ;
181+ ipc_control_->stub_has_user_model_readiness_fn = false ;
182182
183183 memory_manager_ =
184184 std::make_unique<MemoryManager>(std::move (memory_manager_message_queue));
Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ class StubLauncher {
139139 // Returns true if is_model_ready() is defined in the Python model.
140140 // Reads directly from shared memory (set by the stub during initialization).
141141 // Returns false if not set yet (safe default).
142- bool HasUserModelReadyFunction () const
142+ bool HasUserModelReadinessFunction () const
143143 {
144- return ipc_control_ ? ipc_control_->stub_has_model_ready_fn : false ;
144+ return ipc_control_ ? ipc_control_->stub_has_user_model_readiness_fn : false ;
145145 }
146146
147147 // Destruct Stub process
You can’t perform that action at this time.
0 commit comments