mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-31 07:34:07 +00:00
fix:worker_register_host parameter does not work (#527)
fix:worker_register_host parameter does not work Close #526
This commit is contained in:
commit
b8f09df45e
@ -587,7 +587,11 @@ def _create_local_model_manager(
|
||||
from pilot.utils.net_utils import _get_ip_address
|
||||
|
||||
client = ModelRegistryClient(worker_params.controller_addr)
|
||||
host = _get_ip_address()
|
||||
host = (
|
||||
worker_params.worker_register_host
|
||||
if worker_params.worker_register_host
|
||||
else _get_ip_address()
|
||||
)
|
||||
port = worker_params.port
|
||||
|
||||
async def register_func(worker_run_data: WorkerRunData):
|
||||
|
Loading…
Reference in New Issue
Block a user