Update thread name for uvicorn worker

This commit is contained in:
Matthias 2023-04-07 14:49:53 +02:00
parent a75d891007
commit 77985fa591

View File

@ -55,7 +55,7 @@ class UvicornServer(uvicorn.Server):
@contextlib.contextmanager @contextlib.contextmanager
def run_in_thread(self): def run_in_thread(self):
self.thread = threading.Thread(target=self.run) self.thread = threading.Thread(target=self.run, name='FTUvicorn')
self.thread.start() self.thread.start()
while not self.started: while not self.started:
time.sleep(1e-3) time.sleep(1e-3)