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

Function thread_task

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

Source from the content-addressed store, hash-verified

33 results = {}
34
35 def thread_task():
36 # Get context in child thread
37 child_context = get_current_context()
38 results["trace_id"] = child_context.trace_id if child_context else None
39 results["test_data"] = child_context.test_data if child_context else None
40
41 # Create and run child thread
42 thread = ContextThread(target=thread_task)

Callers

nothing calls this directly

Calls 2

get_current_contextFunction · 0.90
set_request_contextFunction · 0.90

Tested by

no test coverage detected