1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/diffusion/editor
epriestley 845a7d8716 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
2017-04-06 15:41:19 -07:00
..
DiffusionCommitEditEngine.php Fix errors found by PHPStan 2017-02-18 09:24:56 +00:00
DiffusionRepositoryEditEngine.php Add a sort order to the favorites menu 2017-03-11 09:40:06 -08:00
DiffusionURIEditEngine.php Bring old repository instructions and guidance forward to new UI 2016-05-10 05:15:43 -07:00
DiffusionURIEditor.php Allow the PullLocal daemon to actually hibernate 2017-04-06 15:41:19 -07:00