Sha256: 681abdb04166e6ff9d35d7c1dc391c1e41e3d92a2002d1e551499121907877f0
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true module GoodJob class PerformanceController < ApplicationController def index @performances = GoodJob::DiscreteExecution .where.not(job_class: nil) .group(:job_class) .select(" job_class, COUNT(*) AS executions_count, AVG(duration) AS avg_duration, MIN(duration) AS min_duration, MAX(duration) AS max_duration ") .order("job_class") end end end
Version data entries
3 entries across 3 versions & 1 rubygems