Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lock options per ranking #17

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Conversation

richardboehme
Copy link
Owner

No description provided.

This commit allows the user to pass additional or overwrite options that
are passed to the `::with_advisory_lock` method. To do so they can
supply options to all `#move_to*` methods. When using the
`:advisory_lock` key they can pass options that will be passed to
`::with_advisory_lock`.

Example:

```ruby
class Page < ActiveRecord::Base
  rank!(advisory_lock: { timeout_seconds: 3 })
end

Page.new.move_to_top!(advisory_lock: { timeout_seconds: 30 })
```
@richardboehme richardboehme merged commit 30ad782 into main Sep 5, 2024
19 checks passed
@richardboehme richardboehme deleted the add-lock-options-per-ranking branch September 5, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant