Skip to content

Commit

Permalink
Add a couple of minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rosa committed Jan 28, 2025
1 parent 96c9fbb commit 5e6fa6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/models/solid_queue/scheduled_execution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class << self
def dispatch_next_batch(batch_size)
transaction do
job_ids = next_batch(batch_size).non_blocking_lock.pluck(:job_id)
if job_ids.empty?
0
if job_ids.empty? then 0
else
SolidQueue.instrument(:dispatch_scheduled, batch_size: batch_size) do |payload|
payload[:size] = dispatch_jobs(job_ids)
Expand Down
3 changes: 2 additions & 1 deletion solid_queue.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ Gem::Specification.new do |spec|
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "UPGRADING.md"]
end

rails_version = ">= 7.1"
spec.required_ruby_version = '>= 3.1'

rails_version = ">= 7.1"
spec.add_dependency "activerecord", rails_version
spec.add_dependency "activejob", rails_version
spec.add_dependency "railties", rails_version
Expand Down

0 comments on commit 5e6fa6d

Please sign in to comment.