agentops icon indicating copy to clipboard operation
agentops copied to clipboard

[Bug]: inconsistent SIGINT behavior

Open teocns opened this issue 1 year ago • 1 comments

Contact Details

[email protected]

📦 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

  • [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.

teocns avatar Oct 31 '24 17:10 teocns

+on this

oogxdd avatar Nov 14 '24 20:11 oogxdd