From b4156107dfcce1de8c49487860b8953be051206a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 13 Nov 2024 18:10:03 +0100 Subject: [PATCH] DEV: restore AutoJoinChannelBatch job as a no-op to clear queue (#29743) The job was removed in 6dfe2fbe16a4096ff342ec8b626ac62a19eaa180 as part of a performance-related refactor. The issue was that job was already enqueued in sidekiq and now that the file has been deleted, it's generating a lot of `uninitialized constant Jobs::Chat::AutoJoinChannelBatch` errors. Restoring this file will help clear the sidekiq queue. We'll remove the job in a few months. Internal ref - t/141563 --- .../jobs/regular/chat/auto_join_channel_batch.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/chat/app/jobs/regular/chat/auto_join_channel_batch.rb diff --git a/plugins/chat/app/jobs/regular/chat/auto_join_channel_batch.rb b/plugins/chat/app/jobs/regular/chat/auto_join_channel_batch.rb new file mode 100644 index 00000000000..7cb1dd1585a --- /dev/null +++ b/plugins/chat/app/jobs/regular/chat/auto_join_channel_batch.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +# TODO: delete this unused job after 2025-01-01 + +module Jobs + module Chat + class AutoJoinChannelBatch < ::Jobs::Base + def execute(args) + # no-op + end + end + end +end