MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / run_in_thread

Function run_in_thread

agentops/validation.py:94–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 # Always run in a separate thread to avoid event loop issues
94 def run_in_thread():
95 return asyncio.run(get_jwt_token(api_key))
96
97 with concurrent.futures.ThreadPoolExecutor() as executor:
98 future = executor.submit(run_in_thread)

Callers

nothing calls this directly

Calls 2

get_jwt_tokenFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…