update sorbet

This commit is contained in:
Dylan Knutson
2025-07-10 17:21:18 +00:00
parent e5c37e4c9d
commit 542e38b35a
3 changed files with 19 additions and 16 deletions

View File

@@ -181,7 +181,9 @@ gem "pundit", "~> 2.4"
# Monitoring
gem "prometheus_exporter", "~> 2.2"
gem "sorbet-static-and-runtime"
SORBET_VERSION = "0.5.12221"
gem "sorbet", SORBET_VERSION, group: :development
gem "sorbet-runtime", SORBET_VERSION
gem "tapioca", "0.16.6", require: false, group: %i[development test]
gem "rspec-sorbet", group: [:test]
gem "sorbet-struct-comparable"

View File

@@ -472,15 +472,15 @@ GEM
semantic_range (>= 2.3.0)
shoulda-matchers (6.4.0)
activesupport (>= 5.2.0)
sorbet (0.5.11711)
sorbet-static (= 0.5.11711)
sorbet-runtime (0.5.11711)
sorbet-static (0.5.11711-aarch64-linux)
sorbet-static (0.5.11711-universal-darwin)
sorbet-static (0.5.11711-x86_64-linux)
sorbet-static-and-runtime (0.5.11711)
sorbet (= 0.5.11711)
sorbet-runtime (= 0.5.11711)
sorbet (0.5.12221)
sorbet-static (= 0.5.12221)
sorbet-runtime (0.5.12221)
sorbet-static (0.5.12221-aarch64-linux)
sorbet-static (0.5.12221-universal-darwin)
sorbet-static (0.5.12221-x86_64-linux)
sorbet-static-and-runtime (0.5.12221)
sorbet (= 0.5.12221)
sorbet-runtime (= 0.5.12221)
sorbet-struct-comparable (1.3.0)
sorbet-runtime (>= 0.5)
spoom (1.5.0)
@@ -644,7 +644,8 @@ DEPENDENCIES
selenium-webdriver
shakapacker (~> 6.6)
shoulda-matchers
sorbet-static-and-runtime
sorbet (= 0.5.12221)
sorbet-runtime (= 0.5.12221)
sorbet-struct-comparable
spring
spring-commands-parallel-tests

View File

@@ -99,6 +99,11 @@ class Tasks::Fa::EnqueueUnscannedOkPostsTask < EnqueueJobBase
log("Finished processing posts")
end
sig { override.returns(Integer) }
def queue_size
count_failed_in_queue("fa_post")
end
private
sig do
@@ -131,9 +136,4 @@ class Tasks::Fa::EnqueueUnscannedOkPostsTask < EnqueueJobBase
def post_id_str(post)
"#{post.to_param} / #{post.title_for_view} / #{post.creator&.to_param}"
end
sig { override.returns(Integer) }
def queue_size
count_failed_in_queue("fa_post")
end
end