Page MenuHomePhabricator

Emit exit event from daemon handle when daemon is not running
ClosedPublic

Authored by epriestley on Feb 23 2015, 7:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 6:43 PM
Unknown Object (File)
Thu, Apr 25, 6:43 PM
Unknown Object (File)
Thu, Apr 25, 1:13 AM
Unknown Object (File)
Tue, Apr 23, 12:15 AM
Unknown Object (File)
Sat, Apr 6, 12:30 PM
Unknown Object (File)
Thu, Apr 4, 10:00 AM
Unknown Object (File)
Feb 23 2024, 11:39 PM
Unknown Object (File)
Feb 11 2024, 7:26 PM
Subscribers

Details

Summary

Ref T7352. Currently, if you ^C a daemon while the subprocess is not running (e.g., wiating to restart after a failure) we just exit without actually emitting the EXIT event.

This can leave the daemon log hanging around in the database until it eventually expires.

Instead, make sure this event always gets emitted when a daemon responds to ^C.

Test Plan

With failing tasks in queue so that the taskmasters exit immediately, ran phd start and then phd stop a few times. Preivously, this would leave phantom daemons; now it cleans them up.

Diff Detail

Repository
rPHU libphutil
Branch
daemon8
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4620
Build 4634: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Emit exit event from daemon handle when daemon is not running.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
  • Also make typechecking more liberal, since integers 0 and 1 are acceptable memory reserves.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Feb 24 2015, 5:18 PM
This revision was automatically updated to reflect the committed changes.