save code

This commit is contained in:
xsl
2025-08-09 21:41:35 +08:00
parent a592c4a552
commit b92fd5e782
2 changed files with 24 additions and 22 deletions
+4 -3
View File
@@ -307,7 +307,7 @@ def main_worker():
serverindex = 0
def regServer(instance, ip):
global serverindex
registerGpuServer(f"s{serverindex}_1_{instance}", f"http://{ip}:8888", True)
registerGpuServer(f"s{serverindex}_1_{instance}", f"http://{ip}", True)
serverindex += 1
@@ -316,7 +316,8 @@ if __name__ == '__main__':
print(f"[Worker] Starting with PID: {os.getpid()}")
redis_conn.set(GPU_SERVER_LIST, "[]")
regServer("一号", "192.168.101.118")
regServer("", "192.168.101.221")
# regServer("5090", "112.126.94.241:28888")
regServer("", "192.168.101.118:8888")
# regServer("二号", "192.168.101.221:8888")
main_worker()