Home GnuPG

Allow the PullLocal daemon to actually hibernate
845a7d871666Unpublished

Unpublished Commit ยท Learn More

Publishing Disabled: All publishing is disabled for this repository.

Description

Allow the PullLocal daemon to actually hibernate

Summary:
Ref T12298. The PullLocal daemon has had hibernation code for a little while, but it never actually activated because we don't sleep for more than 15 seconds in any case.

Add a maximum sleep instead and use that to control the longest sleep we'll do for hibernation purposes.

Also, when a repository or repository URI is edited, write a NEEDS_UPDATE event into the message table to make sure the daemons de-hibernate.

Test Plan: Used bin/phd debug pull, saw the daemon actually hibernate instead of just sleeping for 15 seconds.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12298

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

Details

Provenance
epriestley <git@epriestley.com>Authored on Apr 7 2017, 12:17 AM
marcusPushed on Apr 11 2017, 6:41 PM
Parents
rPHABf1eeaaf59f7f: Fix scope of "Accept" when you don't check all the "Force Accept" boxes
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHAB845a7d871666: Allow the PullLocal daemon to actually hibernate (authored by epriestley <git@epriestley.com>).Apr 7 2017, 12:41 AM