diff options
-rw-r--r-- | Bugzilla/JobQueue.pm | 3 |
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 |