Page MenuHomePhabricator

Allow daemon modules to awake hibernating daemons from slumber
ClosedPublic

Authored by epriestley on Mar 23 2017, 1:17 AM.
Tags
None
Referenced Files
F15466895: D17538.diff
Thu, Apr 3, 10:37 AM
F15436014: D17538.id.diff
Tue, Mar 25, 11:22 AM
F15430565: D17538.diff
Mon, Mar 24, 8:11 AM
F15337261: D17538.id.diff
Mar 9 2025, 5:01 AM
F15314024: D17538.id42196.diff
Mar 6 2025, 4:33 PM
Unknown Object (File)
Feb 21 2025, 3:14 PM
Unknown Object (File)
Feb 17 2025, 7:02 PM
Unknown Object (File)
Feb 9 2025, 3:33 AM
Subscribers
None

Details

Summary

Ref T12298. For repository and taskmaster daemons, before we let them hibernate, we want to be able to wake them up if a new task comes in or a repository gets an update request.

If we can't do this, the first action (commit, comment, etc) after a lull of activity may take several minutes to actually get processed by the daemons since we have to wait around for them to wake up on their own.

With this mechanism, daemon overseers can periodically run some queries (e.g., are there new tasks?) to see if pools should wake from hibernation.

Test Plan

Wrote a fake module to awaken trigger daemons by rolling dice, ran bin/phd debug trigger, saw it reawaken them successfully after random intervals.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 23 2017, 3:48 PM
This revision was automatically updated to reflect the committed changes.