Skip to content

tail processes accumulate over time #58

@shivaraj-bh

Description

@shivaraj-bh

Reproducer

  1. Start a new job
  2. Open the job log page while it is running
  3. Exit the job log page before it successfully finishes
  4. Observe the processes under Vira using nix run nixpkgs#pstree -- [PID_OF_VIRA]
  5. Notice tail -n +1 … /vira/[JOB_ID]/output.log

The tail processes created using the above steps are never killed — accumulating over time. The only time when the tail process is cleaned up after the CI is if the user stays on the log page until the CI finishes running.

Image
(1456 in the above screenshot is the PID of Vira started using just run in Vira's devShell)

Expected behaviour

Always cleanup spawned tail processes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions