Skip to content

Ctrl+C interrupt cancels inflight requests #163

Description

@bxyu-nvidia

Use cases, pain points, and background
If the user exits the Gym servers via ctrl+c (or gym exits by itself unexpectedly), we want to cancel all inflight requests so that nothing is left dangling.

Description:
In the process.kill for each child server here we need to ensure the process is fully killed and not running in the background. Maybe just process.kill() twice will work?

Design:
What files should be touched? What logic should be written?

Out of scope:

Acceptance Criteria:

  • Implement the full logic for the above
  • Test it adhoc by running requests and then quitting the servers. you can use something like ps aux | grep app.py to see if there are any gym servers running. Do a positive test first without any code changes to see if you can reliably repro the servers not quitting i.e. app.py still present. Then implement the code change and do a negative test i.e. app.py not present with your code changes

Activity

  1. added this to the v0.1.0 milestone on Oct 23, 2025
  2. added
    core-infra
    on Oct 23, 2025
  3. linked a pull request that will close this issueMisc infra 20251031 #263on Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

core-infra

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions