1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 18:52:42 +01:00
phorge-phorge/src/infrastructure/daemon
Aviv Eyal a3bb35e9d2 make Trigger Daemon sleep correctly when one-time triggers exist
Summary:
Trigger daemon is trying to find the next event to invoke before sleeping, but the query includes already-elapsed triggers.
It then tries to sleep for 0 seconds.

Test Plan:
On a new instance, schedule a single trigger of type `PhabricatorOneTimeTriggerClock` to a very near time.

Use top to see trigger daemon not going to 100% CPU once the event has elapsed.

Reviewers: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15750
2016-04-18 14:17:10 -07:00
..
bot Fix typo: discsussions → discussions 2016-02-21 01:51:03 -08:00
contentsource Modularize content sources 2016-03-26 11:59:45 -07:00
control Extend from Phobject 2015-06-15 18:02:27 +10:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
overseer Fix daemon restart behavior to check once every 10 seconds 2015-11-23 05:59:04 -08:00
workers make Trigger Daemon sleep correctly when one-time triggers exist 2016-04-18 14:17:10 -07:00
PhabricatorDaemon.php Add "phd.user" with sudo hooks for SSH/HTTP writes 2013-11-18 08:58:35 -08:00