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)
Sun, Dec 8, 8:50 AM
Unknown Object (File)
Fri, Dec 6, 11:23 AM
Unknown Object (File)
Thu, Nov 28, 6:17 AM
Unknown Object (File)
Wed, Nov 27, 1:01 AM
Unknown Object (File)
Mon, Nov 25, 9:38 PM
Unknown Object (File)
Mon, Nov 25, 2:47 PM
Unknown Object (File)
Nov 24 2024, 1:30 PM
Unknown Object (File)
Nov 23 2024, 3:29 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.