File tree 3 files changed +10
-18
lines changed
lib/solid_queue/processes
3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 55
55
connection_pool (2.4.1 )
56
56
crass (1.0.6 )
57
57
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 )
61
61
drb (2.2.1 )
62
62
erubi (1.13.0 )
63
63
et-orbi (1.2.11 )
64
64
tzinfo
65
- fiddle (1.1.2 )
66
65
fugit (1.11.1 )
67
66
et-orbi (~> 1 , >= 1.2.11 )
68
67
raabro (~> 1.4 )
76
75
reline (>= 0.4.2 )
77
76
json (2.8.2 )
78
77
language_server-protocol (3.17.0.3 )
79
- logger (1.6.0 )
78
+ logger (1.6.2 )
80
79
loofah (2.23.1 )
81
80
crass (~> 1.0.2 )
82
81
nokogiri (>= 1.12.0 )
93
92
racc (~> 1.4 )
94
93
nokogiri (1.16.7-x86_64-linux )
95
94
racc (~> 1.4 )
96
- ostruct (0.6.0 )
97
95
parallel (1.26.3 )
98
96
parser (3.3.6.0 )
99
97
ast (~> 2.4.1 )
@@ -186,12 +184,10 @@ PLATFORMS
186
184
x86_64-linux
187
185
188
186
DEPENDENCIES
189
- debug
190
- fiddle
187
+ debug (~> 1.9 )
191
188
logger
192
189
mocha
193
190
mysql2
194
- ostruct
195
191
pg
196
192
puma
197
193
rdoc
Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ def interrupt
13
13
end
14
14
15
15
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.
20
18
Concurrent ::Promises . future ( time ) do |timeout |
21
19
if timeout > 0 && queue . pop ( timeout :)
22
- queue . clear # exiting the poll wait guarantees testing for SHUTDOWN before next poll
20
+ queue . clear
23
21
end
24
22
end . value
25
23
end
Original file line number Diff line number Diff line change @@ -37,15 +37,13 @@ Gem::Specification.new do |spec|
37
37
spec . add_dependency "fugit" , "~> 1.11.0"
38
38
spec . add_dependency "thor" , "~> 1.3.1"
39
39
40
- spec . add_development_dependency "debug"
40
+ spec . add_development_dependency "debug" , "~> 1.9"
41
41
spec . add_development_dependency "mocha"
42
42
spec . add_development_dependency "puma"
43
43
spec . add_development_dependency "mysql2"
44
44
spec . add_development_dependency "pg"
45
45
spec . add_development_dependency "sqlite3"
46
46
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"
50
47
spec . add_development_dependency "rdoc"
48
+ spec . add_development_dependency "logger"
51
49
end
You can’t perform that action at this time.
0 commit comments