HomePhabricator

make Trigger Daemon sleep correctly when one-time triggers exist

Description

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

Details

Provenance
aviveyAuthored on Apr 18 2016, 8:43 PM
aviveyPushed on Apr 18 2016, 9:18 PM
Differential Revision
D15750: make Trigger Daemon sleep correctly when one-time triggers exist
Parents
rP091a64e91bf6: Rename Differential field Projects to Tags
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11828
Build 14840: Run Core Tests