trabajo-afectivo/app/jobs/application_job/has_queuing_priority.rb

18 lines
319 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class ApplicationJob
module HasQueuingPriority
extend ActiveSupport::Concern
included do
queue_with_priority 200
end
class_methods do
def low_priority
queue_with_priority 300
end
end
end
end