enable RequestCache around jobs

Change-Id: If9efe784f26b612ca71693dd3204eb09ee7afe79
Reviewed-on: https://gerrit.instructure.com/194336
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
James Williams 2019-05-20 11:01:33 -06:00
parent fb5c3af74f
commit 8b3d7ec658
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,9 @@ Delayed::Worker.lifecycle.around(:perform) do |worker, job, &block|
starting_cpu = Process.times()
begin
block.call(worker, job)
RequestCache.enable do
block.call(worker, job)
end
ensure
ending_cpu = Process.times()
ending_mem = Canvas.sample_memory()