Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
340 B
Raw Blame
class ApplyAllRulesJob < ApplicationJob
  queue_as :medium_priority

  retry_on Rule::Runner::LockBusy, wait: 30.seconds, attempts: 20

  def perform(family, execution_type: "manual")
    Rule::Runner.new(
      family,
      rules: family.rules,
      execution_type: execution_type,
      ignore_attribute_locks: true
    ).run
  end
end