Skip to content
代码片段 群组 项目
未验证 提交 4a55e88a 编辑于 作者: Adam Hegyi's avatar Adam Hegyi 提交者: GitLab
浏览文件

Merge branch '495552-cleanup-events-cron-worker-retries' into 'master'

No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class CleanupCodeSuggestionEventsRetries < Gitlab::Database::Migration[2.2]
disable_ddl_transaction!
milestone '17.7'
WORKER_CLASS = 'ClickHouse::CodeSuggestionEventsCronWorker'
def up
# TODO: make shard-aware. See https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/3430
Gitlab::SidekiqSharding::Validator.allow_unrouted_sidekiq_calls do
Sidekiq::Cron::Job.destroy('click_house_code_suggestion_events_cron_worker')
end
sidekiq_remove_jobs(job_klasses: [WORKER_CLASS])
end
def down
# no-op
end
end
1fb92ff5ffe949e5eb24839c7d3a9a17ea3287decdf1627520779ae8ef811618
\ No newline at end of file
...@@ -138,6 +138,15 @@ ...@@ -138,6 +138,15 @@
:weight: 1 :weight: 1
:idempotent: true :idempotent: true
:tags: [] :tags: []
- :name: cronjob:click_house_code_suggestion_events_cron
:worker_name: ClickHouse::CodeSuggestionEventsCronWorker
:feature_category: :database
:has_external_dependencies: false
:urgency: :low
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: cronjob:click_house_dump_all_write_buffers_cron - :name: cronjob:click_house_dump_all_write_buffers_cron
:worker_name: ClickHouse::DumpAllWriteBuffersCronWorker :worker_name: ClickHouse::DumpAllWriteBuffersCronWorker
:feature_category: :database :feature_category: :database
......
# frozen_string_literal: true
module ClickHouse # rubocop:disable Gitlab/BoundedContexts -- this file will be removed in next release.
# Alias worker class. Remove after 17.8 release so scheduled cron jobs can work-off properly
class CodeSuggestionEventsCronWorker < DumpAllWriteBuffersCronWorker
idempotent!
def perform
# no-op
end
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册