Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: inconsistent SIGINT behavior #477

Open
1 of 3 tasks
teocns opened this issue Oct 31, 2024 · 1 comment Β· May be fixed by #478
Open
1 of 3 tasks

[Bug]: inconsistent SIGINT behavior #477

teocns opened this issue Oct 31, 2024 · 1 comment Β· May be fixed by #478
Labels
bug Something isn't working

Comments

@teocns
Copy link
Contributor

teocns commented Oct 31, 2024

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

  • 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 teocns added the bug Something isn't working label Oct 31, 2024
teocns added a commit to teocns/agentops that referenced this issue Oct 31, 2024
teocns added a commit to teocns/agentops that referenced this issue Oct 31, 2024
@oogxdd
Copy link

oogxdd commented Nov 14, 2024

+on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants