Skip to content

Commit fb4c683

Browse files
committed
refactor: name thread
Signed-off-by: thxCode <[email protected]>
1 parent 28e4593 commit fb4c683

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gpustack_runtime/deployer/__types__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,10 @@ def pool(self):
14801480
pool_threads = envs.GPUSTACK_RUNTIME_DEPLOY_ASYNC_THREADS
14811481
if pool_threads and pool_threads < 1:
14821482
pool_threads = None
1483-
self._pool = ThreadPoolExecutor(max_workers=pool_threads)
1483+
self._pool = ThreadPoolExecutor(
1484+
max_workers=pool_threads,
1485+
thread_name_prefix=f"runtime-deployer-{self.name}",
1486+
)
14841487
return self._pool
14851488

14861489
@_default_args

0 commit comments

Comments
 (0)