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 ability to set a custom runtime lock key for :until_and_while_executing strategy #32

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

sharshenov
Copy link
Member

This PR adds ability to set a custom runtime_lock_key for :until_and_while_executing strategy

class MyJob < ApplicationJob
  unique :until_and_while_executing

  def perform(args)
    # rocket_science(args)
  end

  def runtime_lock_key
    'my_lock_key_for_job_locking_while_it_is_being_performed'
  end
end

@sharshenov sharshenov merged commit 21fc1fa into main Oct 22, 2021
@sharshenov sharshenov deleted the runtime-lock-key branch October 22, 2021 15:03
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