Skip to content

Commit 815ded5

Browse files
Leaminn Mabalasankarc
authored andcommitted
Add cron job to process catalog resource sync events
Changelog: added
1 parent 43f0745 commit 815ded5

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

files/gitlab-config-template/gitlab.rb.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ external_url 'GENERATED_EXTERNAL_URL'
185185
# gitlab_rails['loose_foreign_keys_cleanup_worker_cron'] = "*/5 * * * *"
186186
# gitlab_rails['ci_runner_versions_reconciliation_worker_cron'] = "@daily"
187187
# gitlab_rails['ci_runners_stale_machines_cleanup_worker_cron'] = "36 * * * *"
188+
# gitlab_rails['ci_catalog_resources_process_sync_events_worker_cron'] = "*/1 * * * *"
188189

189190
### Webhook Settings
190191
###! Number of seconds to wait for HTTP response after sending webhook HTTP POST

files/gitlab-cookbooks/gitlab/attributes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
default['gitlab']['gitlab_rails']['ci_runners_stale_group_runners_prune_worker_cron'] = nil
176176
default['gitlab']['gitlab_rails']['ci_runner_versions_reconciliation_worker_cron'] = nil
177177
default['gitlab']['gitlab_rails']['ci_runners_stale_machines_cleanup_worker_cron'] = nil
178+
default['gitlab']['gitlab_rails']['ci_catalog_resources_process_sync_events_worker_cron'] = nil
178179

179180
# Consolidated object storage config
180181
default['gitlab']['gitlab_rails']['object_store']['enabled'] = false

files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,12 @@ production: &base
586586
cron: "<%= @ci_runners_stale_machines_cleanup_worker_cron %>"
587587
<% end %>
588588

589+
# Periodically process catalog resource sync events
590+
<% unless @ci_catalog_resources_process_sync_events_worker_cron.nil? %>
591+
ci_catalog_resources_process_sync_events_worker:
592+
cron: "<%= @ci_catalog_resources_process_sync_events_worker_cron %>"
593+
<% end %>
594+
589595
##
590596
# GitLab EE only jobs:
591597

spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/cron_jobs_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
'ci_runner_versions_reconciliation_worker' | 'ci_runner_versions_reconciliation_worker_cron'
5454
'ci_runners_stale_machines_cleanup_worker' | 'ci_runners_stale_machines_cleanup_worker_cron'
5555
'click_house_ci_finished_builds_sync_worker' | 'click_house_ci_finished_builds_sync_worker_cron'
56+
'ci_catalog_resources_process_sync_events_worker' | 'ci_catalog_resources_process_sync_events_worker_cron'
5657
end
5758

5859
with_them do

0 commit comments

Comments
 (0)