MCPcopy Create free account
hub / github.com/MemTensor/MemOS / pool_task

Function pool_task

tests/api/test_thread_context.py:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 set_request_context(main_context)
57
58 def pool_task():
59 context = get_current_context()
60 return {
61 "trace_id": context.trace_id if context else None,
62 "test_data": context.test_data if context else None,
63 }
64
65 # Use thread pool to execute task
66 with ContextThreadPoolExecutor(max_workers=2) as executor:

Callers

nothing calls this directly

Calls 1

get_current_contextFunction · 0.90

Tested by

no test coverage detected