Skip to content

Commit

Permalink
Don't instantiate job class to check concurrency limit if the key is …
Browse files Browse the repository at this point in the history
…not set
  • Loading branch information
rosa committed Nov 20, 2023
1 parent 2aca66d commit 21d447a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/solid_queue/job/concurrency_controls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def release_next_blocked_job
end

def concurrency_limited?
concurrency_limit.to_i > 0 && concurrency_key.present?
concurrency_key.present? && concurrency_limit.to_i > 0
end

def job_class
Expand Down

0 comments on commit 21d447a

Please sign in to comment.