Skip to content

Commit 17c4cd5

Browse files
committed
Addresses PR feedback
* Streamlined a comment in the code * Removed unneeded gemspec developer_dependencies that we get handled via the upgrade to Rails 7.1.4.1 * Added a gemspec version dependency required for keyword argument support * Rebase to main
1 parent a152f26 commit 17c4cd5

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

Gemfile.lock

+5-9
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,13 @@ GEM
5555
connection_pool (2.4.1)
5656
crass (1.0.6)
5757
date (3.4.1)
58-
debug (1.7.1)
59-
irb (>= 1.5.0)
60-
reline (>= 0.3.1)
58+
debug (1.9.2)
59+
irb (~> 1.10)
60+
reline (>= 0.3.8)
6161
drb (2.2.1)
6262
erubi (1.13.0)
6363
et-orbi (1.2.11)
6464
tzinfo
65-
fiddle (1.1.2)
6665
fugit (1.11.1)
6766
et-orbi (~> 1, >= 1.2.11)
6867
raabro (~> 1.4)
@@ -76,7 +75,7 @@ GEM
7675
reline (>= 0.4.2)
7776
json (2.8.2)
7877
language_server-protocol (3.17.0.3)
79-
logger (1.6.0)
78+
logger (1.6.2)
8079
loofah (2.23.1)
8180
crass (~> 1.0.2)
8281
nokogiri (>= 1.12.0)
@@ -93,7 +92,6 @@ GEM
9392
racc (~> 1.4)
9493
nokogiri (1.16.7-x86_64-linux)
9594
racc (~> 1.4)
96-
ostruct (0.6.0)
9795
parallel (1.26.3)
9896
parser (3.3.6.0)
9997
ast (~> 2.4.1)
@@ -186,12 +184,10 @@ PLATFORMS
186184
x86_64-linux
187185

188186
DEPENDENCIES
189-
debug
190-
fiddle
187+
debug (~> 1.9)
191188
logger
192189
mocha
193190
mysql2
194-
ostruct
195191
pg
196192
puma
197193
rdoc

lib/solid_queue/processes/interruptible.rb

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ def interrupt
1313
end
1414

1515
def interruptible_sleep(time)
16-
# Since this is invoked on the main thread, using some form of Async
17-
# avoids a 35% slowdown (at least when running the test suite).
18-
#
19-
# Using Futures for architectural consistency with all the other Async in SolidQueue.
16+
# Invoking from the main thread can result in a 35% slowdown (at least when running the test suite).
17+
# Using some form of Async (Futures) addresses this performance issue.
2018
Concurrent::Promises.future(time) do |timeout|
2119
if timeout > 0 && queue.pop(timeout:)
22-
queue.clear # exiting the poll wait guarantees testing for SHUTDOWN before next poll
20+
queue.clear
2321
end
2422
end.value
2523
end

solid_queue.gemspec

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ Gem::Specification.new do |spec|
3737
spec.add_dependency "fugit", "~> 1.11.0"
3838
spec.add_dependency "thor", "~> 1.3.1"
3939

40-
spec.add_development_dependency "debug"
40+
spec.add_development_dependency "debug", "~> 1.9"
4141
spec.add_development_dependency "mocha"
4242
spec.add_development_dependency "puma"
4343
spec.add_development_dependency "mysql2"
4444
spec.add_development_dependency "pg"
4545
spec.add_development_dependency "sqlite3"
4646
spec.add_development_dependency "rubocop-rails-omakase"
47-
spec.add_development_dependency "ostruct"
48-
spec.add_development_dependency "logger"
49-
spec.add_development_dependency "fiddle"
5047
spec.add_development_dependency "rdoc"
48+
spec.add_development_dependency "logger"
5149
end

0 commit comments

Comments
 (0)