summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-06 01:32:08 +0100
committerGitHub <noreply@github.com>2018-03-06 01:32:08 +0100
commitc418f3aeb9bbbea2f2ffead8cc6c1fee5a82fe5b (patch)
tree4f0da10316a81325579afc7192b7b8169f90c088
parentf57cde085d95bb0c1a54959b25157af94f776fc9 (diff)
downloadbugzilla-c418f3aeb9bbbea2f2ffead8cc6c1fee5a82fe5b.tar.gz
bugzilla-c418f3aeb9bbbea2f2ffead8cc6c1fee5a82fe5b.tar.xz
Bug 1441181 - Step 3 - Clear memory after each job, not before
-rw-r--r--Bugzilla/JobQueue.pm3
1 files changed, 2 insertions, 1 deletions
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