MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / worker_thread

Method worker_thread

tests/metrics/test_trace.py:356–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354
355 # Create worker thread
356 def worker_thread():
357 trace.trace_set_thread_info("worker_thread")
358 trace.trace_slice_start("worker_task", rid)
359 time.sleep(0.001) # Simulate work
360 trace.trace_slice_end("worker_task", rid)
361
362 thread = threading.Thread(target=worker_thread)
363 thread.start()

Callers

nothing calls this directly

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected