Skip to content

[Bug]: inconsistent SIGINT behavior Β #477

@teocns

Description

@teocns

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions