Skip to content

Commit

Permalink
Upgrade ActiveRecord::AssociatedObject to 0.8.3 (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth authored Dec 13, 2024
1 parent a4149c4 commit 16f5de1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GEM
active_link_to (1.0.5)
actionpack
addressable
active_record-associated_object (0.8.2)
active_record-associated_object (0.8.3)
activerecord (>= 6.1)
activejob (8.0.0.1)
activesupport (= 8.0.0.1)
Expand Down
1 change: 0 additions & 1 deletion app/models/speaker/profiles.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Speaker::Profiles < ActiveRecord::AssociatedObject
extend ActiveJob::Performs # TODO: Fix AssociatedObject's Railtie so we don't need to do this
performs(retries: 3) { limits_concurrency key: -> { _1.id } }

def enhance_all_later
Expand Down
2 changes: 0 additions & 2 deletions app/models/talk/agents.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class Talk::Agents < ActiveRecord::AssociatedObject
extend ActiveJob::Performs # TODO: Fix AssociatedObject's Railtie so we don't need to do this

performs retries: 3 do
# this is to comply to the rate limit of openai 60 000 tokens per minute
limits_concurrency to: 1, key: "openai_api", duration: 1.hour
Expand Down

0 comments on commit 16f5de1

Please sign in to comment.