Skip to content
Snippets Groups Projects
Commit f035bfda authored by Pedro Pombeiro's avatar Pedro Pombeiro
Browse files

Add cronjob to sync finished pipelines to ClickHouse

parent d771c852
No related branches found
No related tags found
1 merge request!147Upstream merge up to the 17.2 branching point
......@@ -194,6 +194,8 @@
# gitlab_rails['ci_runner_versions_reconciliation_worker_cron'] = "@daily"
# gitlab_rails['ci_runners_stale_machines_cleanup_worker_cron'] = "36 * * * *"
# gitlab_rails['ci_catalog_resources_process_sync_events_worker_cron'] = "*/1 * * * *"
# gitlab_rails['ci_click_house_finished_pipelines_sync_worker_cron'] = "*/4 * * * *"
# gitlab_rails['ci_click_house_finished_pipelines_sync_worker_args'] = [1]
### Webhook Settings
###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
......@@ -1040,7 +1042,7 @@
### Registry garbage collection
###! Docs: https://gitlab.com/gitlab-org/container-registry/-/blob/master/docs/configuration.md?ref_type=heads#gc
# registry['gc'] = {
# registry['gc'] = {
# 'disabled' => false,
# 'maxbackoff' => '24h',
# 'noidlebackoff' => false,
......
......@@ -152,6 +152,8 @@
default['gitlab']['gitlab_rails']['incoming_email_auth_token'] = nil
default['gitlab']['gitlab_rails']['click_house_ci_finished_builds_sync_worker_cron'] = nil
default['gitlab']['gitlab_rails']['click_house_ci_finished_builds_sync_worker_args'] = nil
default['gitlab']['gitlab_rails']['ci_click_house_finished_pipelines_sync_worker_cron'] = nil
default['gitlab']['gitlab_rails']['ci_click_house_finished_pipelines_sync_worker_args'] = nil
default['gitlab']['gitlab_rails']['service_desk_email_enabled'] = false
default['gitlab']['gitlab_rails']['service_desk_email_address'] = nil
......
......@@ -609,6 +609,15 @@
cron: "<%= @ci_catalog_resources_process_sync_events_worker_cron %>"
<% end %>
# Periodically sync finished pipelines from p_ci_finished_pipeline_ch_sync_events to ClickHouse
<% unless @ci_click_house_finished_pipelines_sync_worker_cron.nil? %>
ci_click_house_finished_pipelines_sync_worker:
cron: "<%= @ci_click_house_finished_pipelines_sync_worker_cron %>"
<% unless @ci_click_house_finished_pipelines_sync_worker_args.nil? %>
args: <%= @ci_click_house_finished_pipelines_sync_worker_args %>
<% end %>
<% end %>
##
# GitLab EE only jobs:
......
......@@ -54,6 +54,7 @@
'ci_runners_stale_machines_cleanup_worker' | 'ci_runners_stale_machines_cleanup_worker_cron'
'click_house_ci_finished_builds_sync_worker' | 'click_house_ci_finished_builds_sync_worker_cron'
'ci_catalog_resources_process_sync_events_worker' | 'ci_catalog_resources_process_sync_events_worker_cron'
'ci_click_house_finished_pipelines_sync_worker' | 'ci_click_house_finished_pipelines_sync_worker_cron'
end
with_them do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment