From dc5f64ab30175ee431cbde21554125eef845b45f Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 23 Apr 2025 14:37:09 +0200 Subject: [PATCH] Remove redundant default queue declaration --- app/jobs/card/auto_close_all_due_job.rb | 2 -- app/jobs/card/auto_reconsider_all_stagnated_job.rb | 2 -- app/jobs/mention/create_job.rb | 2 -- app/jobs/notify_recipients_job.rb | 2 -- app/jobs/remove_abandoned_creations_job.rb | 2 -- 5 files changed, 10 deletions(-) diff --git a/app/jobs/card/auto_close_all_due_job.rb b/app/jobs/card/auto_close_all_due_job.rb index 6cb4f646b..d964dae23 100644 --- a/app/jobs/card/auto_close_all_due_job.rb +++ b/app/jobs/card/auto_close_all_due_job.rb @@ -1,6 +1,4 @@ class Card::AutoCloseAllDueJob < ApplicationJob - queue_as :default - def perform ApplicationRecord.with_each_tenant do |tenant| Card.auto_close_all_due diff --git a/app/jobs/card/auto_reconsider_all_stagnated_job.rb b/app/jobs/card/auto_reconsider_all_stagnated_job.rb index 83f87a648..b7178f916 100644 --- a/app/jobs/card/auto_reconsider_all_stagnated_job.rb +++ b/app/jobs/card/auto_reconsider_all_stagnated_job.rb @@ -1,6 +1,4 @@ class Card::AutoReconsiderAllStagnatedJob < ApplicationJob - queue_as :default - def perform ApplicationRecord.with_each_tenant do |tenant| Card.auto_reconsider_all_stagnated diff --git a/app/jobs/mention/create_job.rb b/app/jobs/mention/create_job.rb index 364ea1272..816782754 100644 --- a/app/jobs/mention/create_job.rb +++ b/app/jobs/mention/create_job.rb @@ -1,6 +1,4 @@ class Mention::CreateJob < ApplicationJob - queue_as :default - def perform(record, mentioner:) record.create_mentions(mentioner:) end diff --git a/app/jobs/notify_recipients_job.rb b/app/jobs/notify_recipients_job.rb index 2f14c2e96..6083622fd 100644 --- a/app/jobs/notify_recipients_job.rb +++ b/app/jobs/notify_recipients_job.rb @@ -1,6 +1,4 @@ class NotifyRecipientsJob < ApplicationJob - queue_as :default - def perform(notifiable) notifiable.notify_recipients end diff --git a/app/jobs/remove_abandoned_creations_job.rb b/app/jobs/remove_abandoned_creations_job.rb index 1444313a2..6ca63169d 100644 --- a/app/jobs/remove_abandoned_creations_job.rb +++ b/app/jobs/remove_abandoned_creations_job.rb @@ -1,6 +1,4 @@ class RemoveAbandonedCreationsJob < ApplicationJob - queue_as :default - def perform ApplicationRecord.with_each_tenant do |tenant| Card.remove_abandoned_creations