HomePhorge

(#13640) Only agents should use next_agent_run
a7181c81d6ceUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#13640) Only agents should use next_agent_run

The new event_loop code in daemon was adjusting the run time based on
next_agent_run even when not running an agent. This caused the interval to
always be 0 and peg CPU usage at 100%. We should only make this adjustment if
there is an agent running. This also somewhat refactors the logic around
next_event to avoid duplication.

Details

Event Timeline

Patrick Carlisle <patrick@puppetlabs.com> committed rPUa7181c81d6ce: (#13640) Only agents should use next_agent_run (authored by Patrick Carlisle <patrick@puppetlabs.com>).Apr 11 2012, 11:59 PM