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

18 lines
320 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://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