agentops
agentops copied to clipboard
[Bug]: inconsistent SIGINT behavior
Contact Details
📦 Package Version
latest
🎞️ Framework Version
N/A
🔎 Describe the Bug
import os
import time
import agentops
import dotenv
dotenv.load_dotenv()
agentops.init(api_key=os.environ["AGENTOPS_API_KEY"])
while True:
time.sleep(0.2)
-
Run the script
-
Spam
<C-c> -
Won't [always] terminate
🖇 AgentOps: Session Replay: https://app.agentops.ai/drilldown?session_id=6f8b6bee-33c5-4288-9377-c1f2bb0d264f
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
^C🖇 AgentOps: SIGINT detected. Ending session...
... (Goes on forever)
🤝 Contribution
- [X] Yes, I'd be happy to submit a pull request with these changes.
- [ ] I need some guidance on how to contribute.
- [ ] I'd prefer the AgentOps team to handle this update.
+on this