Page MenuHomePhabricator

Allow the PullLocal daemon to actually hibernate
ClosedPublic

Authored by epriestley on Apr 6 2017, 10:26 PM.
Tags
None
Referenced Files
F15493011: D17635.diff
Sat, Apr 12, 8:44 PM
F15467173: D17635.id42412.diff
Thu, Apr 3, 1:27 PM
F15461882: D17635.diff
Tue, Apr 1, 12:08 PM
F15452392: D17635.id42410.diff
Sat, Mar 29, 4:26 AM
F15449482: D17635.id42412.diff
Fri, Mar 28, 10:35 AM
F15433965: D17635.id.diff
Tue, Mar 25, 1:23 AM
F15427199: D17635.id42409.diff
Sun, Mar 23, 1:18 PM
F15426670: D17635.id42410.diff
Sun, Mar 23, 10:24 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley created this revision.
  • More authetic changeset.
This revision is now accepted and ready to land.Apr 6 2017, 10:31 PM
This revision was automatically updated to reflect the committed changes.