AgentOps-AI / agentops

Python SDK for agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks like CrewAI, Langchain, and Autogen
https://agentops.ai
MIT License
1.27k stars 101 forks source link

only watch signal if main thread #152

Closed bboynton97 closed 2 months ago

bboynton97 commented 3 months ago

If the process is not running on the main thread, do not watch for signal interruptions

Closes ENG-156

bboynton97 commented 3 months ago

Drafting this because i tested it for the main thread case but not child thread case. I ran out of time before my flight boards

bboynton97 commented 2 months ago

I tested this with a jupyter notebook and added:

else:
  print('not main thread')

I ran it on a child process and it printed 'not main thread' and did not start signal tracking.

bboynton97 commented 2 months ago

Closes ENG-156