Skip to content

Commit 242fd15

Browse files
andersonkrsrosa
andauthored
Update app/models/solid_queue/queue.rb
Co-authored-by: Rosa Gutierrez <[email protected]>
1 parent 8cc892d commit 242fd15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/solid_queue/queue.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def size
4343
def latency
4444
@latency = begin
4545
now = Time.current
46-
oldest_enqueued_at = SolidQueue::ReadyExecution.queued_as(name).minimum(:created_at) || now
46+
oldest_enqueued_at = ReadyExecution.queued_as(name).minimum(:created_at) || now
4747

4848
(now - oldest_enqueued_at).to_i
4949
end

0 commit comments

Comments
 (0)