From c418f3aeb9bbbea2f2ffead8cc6c1fee5a82fe5b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 5 Mar 2018 19:32:08 -0500 Subject: Bug 1441181 - Step 3 - Clear memory after each job, not before --- Bugzilla/JobQueue.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/JobQueue.pm') diff --git a/Bugzilla/JobQueue.pm b/Bugzilla/JobQueue.pm index 661c1c492..b3b54de79 100644 --- a/Bugzilla/JobQueue.pm +++ b/Bugzilla/JobQueue.pm @@ -147,10 +147,11 @@ sub set_pidfile { # Clear the request cache at the start of each run. sub work_once { my $self = shift; + my $val = $self->SUPER::work_once(@_); Bugzilla::Hook::process('request_cleanup'); Bugzilla::Bug->CLEANUP; Bugzilla->clear_request_cache(); - return $self->SUPER::work_once(@_); + return $val; } # Never process more than MAX_MESSAGES in one batch, to avoid memory -- cgit v1.2.3-24-g4f1b