From 2edcd0268ed2718c799776735e597339c2cf34aa Mon Sep 17 00:00:00 2001 From: Douglas Lara Date: Tue, 15 Feb 2022 17:30:14 -0300 Subject: [PATCH] Fix script (#522) --- scripts/benchmark_job_throughput.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/benchmark_job_throughput.rb b/scripts/benchmark_job_throughput.rb index ce5303f63..caa62dcc8 100644 --- a/scripts/benchmark_job_throughput.rb +++ b/scripts/benchmark_job_throughput.rb @@ -36,13 +36,13 @@ Benchmark.ips do |x| x.report("with priority") do - GoodJob::Execution.unfinished.priority_ordered.only_scheduled(use_coalesce: true).limit(1).with_advisory_lock do |executions| + GoodJob::Execution.unfinished.priority_ordered.only_scheduled.limit(1).with_advisory_lock do |executions| # executions.first&.destroy! end end x.report("without priority") do - GoodJob::Execution.unfinished.only_scheduled(use_coalesce: true).limit(1).with_advisory_lock do |executions| + GoodJob::Execution.unfinished.only_scheduled.limit(1).with_advisory_lock do |executions| # executions.first&.destroy! end end