Skip to content

Commit

Permalink
Remove unneeded include of pg_locks when displaying jobs table (#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrau authored Nov 16, 2024
1 parent 0cb2a47 commit 74f3bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/filters/good_job/jobs_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def filtered_query(filter_params = params)
when 'scheduled'
query = query.scheduled
when 'running'
query = query.running.select("#{GoodJob::Job.table_name}.*", 'pg_locks.locktype')
query = query.running
when 'queued'
query = query.queued
end
Expand All @@ -55,7 +55,7 @@ def filtered_count
private

def query_for_records
filtered_query.includes_advisory_locks
filtered_query
end

def default_base_query
Expand Down

0 comments on commit 74f3bde

Please sign in to comment.