AgentOps-AI/agentops

[Bug]: inconsistent SIGINT behavior

Opened this issue ยท 1 comments

Contact Details

teocns@gmail.com

๐Ÿ“ฆ 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)
  1. Run the script

  2. Spam <C-c>

  3. 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

  • 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