Skip to content

feat: Process tree tracking for reliable cleanup #5

@JaimeCernuda

Description

@JaimeCernuda

Feature Request

When jobs are deployed, the stored PID is for the outer uv/python process, not the actual agent process. On Windows especially, processes spawn child processes, so killing the stored PID may not terminate all related processes.

Use Case

Reliable process cleanup when stopping jobs via deploy stop - currently processes can be orphaned.

Suggested Approach

  • Track process groups (Unix: setpgid/killpg, Windows: job objects)
  • Or: store PIDs of all child processes
  • Or: use process tree kill utilities

Discovered During

Platform exploration session - cleanup improvements

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions