zuul/zuul
Joshua Hesketh 90b61dbde8 Fix memory leak reloading triggers
Because the triggers are loaded to the scheduler and not an object
of a pipeline they aren't reset when reloading. They are reused
by the new pipeline, however any previously loaded triggers will
still have an old connection object that should no longer be used.

Instead reset the triggers when reloading causing new triggers to be
created by the pipeline configuration against the new connection objects.

The connection objects that were hanging around for old triggers were
keeping their change cache and hence using up a lot of memory.

It appears that maintainTriggerCache is only called when reloading,
so the cache would have a habit of growing out of hand and, in particular,
if you don't ever reload it will not be maintained. A followup to run
the cache at sensible times will come.

Change-Id: I81ee47524cda71a500c55a95a2280f491b1b63d9
2016-02-03 14:22:15 +11:00
..
cmd Add support for 'connection' concept 2015-12-06 14:48:32 +11:00
connection Fix regression in change tracking 2015-12-21 15:52:48 +11:00
launcher Use default if gearman-plugin None for node_labels 2015-10-20 12:40:03 -05:00
lib Connection names for legacy configs 2015-12-10 17:00:11 -08:00
merger Add support for 'connection' concept 2015-12-06 14:48:32 +11:00
reporter Move Item formatting into Reporters 2015-12-06 14:48:32 +11:00
source Fix regression in change tracking 2015-12-21 15:52:48 +11:00
trigger Bump APScheduler to >=3.0 2015-12-22 12:23:54 -05:00
__init__.py Initial commit. 2012-05-29 14:49:32 -07:00
change_matcher.py Add support for a skip-if filter on jobs 2015-02-10 00:42:51 +00:00
exceptions.py Add support for 'connection' concept 2015-12-06 14:48:32 +11:00
layoutvalidator.py Add support for 'connection' concept 2015-12-06 14:48:32 +11:00
model.py Fix regression in change tracking 2015-12-21 15:52:48 +11:00
rpcclient.py Add enqueue-ref command to client 2015-07-31 17:00:50 -07:00
rpclistener.py Add enqueue-ref command to client 2015-07-31 17:00:50 -07:00
scheduler.py Fix memory leak reloading triggers 2016-02-03 14:22:15 +11:00
version.py Migrate to pbr. 2013-06-25 19:04:30 +00:00
webapp.py web: Allow clients (browsers, proxies) to cache status.json 2015-04-04 00:44:34 +01:00