Page MenuHomePhabricator

Formalize a "Query" class for looking at the process list
ClosedPublic

Authored by epriestley on Jun 20 2019, 9:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 6:56 PM
Unknown Object (File)
Wed, Nov 20, 10:24 AM
Unknown Object (File)
Wed, Nov 6, 10:57 AM
Unknown Object (File)
Oct 20 2024, 7:17 AM
Unknown Object (File)
Oct 18 2024, 10:25 AM
Unknown Object (File)
Oct 11 2024, 2:35 AM
Unknown Object (File)
Sep 21 2024, 5:09 AM
Unknown Object (File)
Sep 6 2024, 6:29 AM
Subscribers
None

Details

Summary

Ref T13321. We currently use a mixture of PID files and examining the process list to figure out what daemons are running.

I'd like to move away from PID files, which aren't terribly reliable, particularly after hosts restart unexpectedly.

To prepare for this, write a "ProcessQuery", similar to Phabricator "Query" classes that can fetch a structured list of running processes.

This is very similar to existing code in PhutilDaemonOverseer::findRunningDaemons(), but I plan to remove that soon so I'm providing this as an alterantive rather than an upgrade.

Test Plan

See next chagnes.

Diff Detail

Repository
rPHU libphutil
Branch
pquery1
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/filesystem/PhutilProcessQuery.php:27XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 23006
Build 31581: Run Core Tests
Build 31580: arc lint + arc unit