Home GnuPG

Allow daemon modules to awake hibernating daemons from slumber
f2bc1710cf91Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Allow daemon modules to awake hibernating daemons from slumber

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.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12298

Differential Revision: https://secure.phabricator.com/D17538

Details

Provenance
epriestley <git@epriestley.com>Authored on Mar 23 2017, 2:02 AM
Parents
rPHUTIL91ab940c3979: Call setsid() unconditionally after daemonizing
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUTILf2bc1710cf91: Allow daemon modules to awake hibernating daemons from slumber (authored by epriestley <git@epriestley.com>).Mar 23 2017, 6:51 PM