Skip to content
Snippets Groups Projects
Commit 27bd16d0 authored by Z.J. van de Weg's avatar Z.J. van de Weg
Browse files

Rename Trigger schedule to Pipeline Schedule

The feature was listed as experimental on the docs page describing this
feature, so we're free to change the key to match the worker name.

The frequency was improved too, so the peaks would be lower, and
accuracy would be better. The default cron pattern was choosen so it
would spread the load between other scheduled jobs nicely.
parent a9e97b91
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -17,6 +17,7 @@ omnibus-gitlab repository.
- Generate license .csv file 5478b1aa
- Generate PO translation files 6b6c936a
- Change service running detection 18b51873
- Rename trigger schedules to pipeline schedules
- Compile new binaries for gitlab-shell
 
9.1.2
Loading
Loading
Loading
Loading
@@ -82,7 +82,7 @@ external_url 'GENERATED_EXTERNAL_URL'
###! https://docs.gitlab.com/ce/ci/yaml/README.html#artifacts:expire_in
# gitlab_rails['stuck_ci_jobs_worker_cron'] = "0 0 * * *"
# gitlab_rails['expire_build_artifacts_worker_cron'] = "50 * * * *"
# gitlab_rails['trigger_schedule_worker_cron'] = "0 */12 * * *"
# gitlab_rails['pipeline_schedule_worker_cron'] = "41 * * * *"
# gitlab_rails['repository_check_worker_cron'] = "20 * * * *"
# gitlab_rails['admin_email_worker_cron'] = "0 0 * * 0"
# gitlab_rails['repository_archive_cache_worker_cron'] = "0 * * * *"
Loading
Loading
Loading
Loading
@@ -103,7 +103,7 @@ default['gitlab']['gitlab-rails']['gravatar_plain_url'] = nil
default['gitlab']['gitlab-rails']['gravatar_ssl_url'] = nil
default['gitlab']['gitlab-rails']['stuck_ci_jobs_worker_cron'] = nil
default['gitlab']['gitlab-rails']['expire_build_artifacts_worker_cron'] = nil
default['gitlab']['gitlab-rails']['trigger_schedule_worker_cron'] = nil
default['gitlab']['gitlab-rails']['pipeline_schedule_worker_cron'] = nil
default['gitlab']['gitlab-rails']['repository_check_worker_cron'] = nil
default['gitlab']['gitlab-rails']['admin_email_worker_cron'] = nil
default['gitlab']['gitlab-rails']['repository_archive_cache_worker_cron'] = nil
Loading
Loading
Loading
Loading
@@ -172,8 +172,8 @@ production: &base
expire_build_artifacts_worker:
cron: "<%= @expire_build_artifacts_worker_cron %>"
# Schedule pipelines in the near future
trigger_schedule_worker:
cron: "<%= @trigger_schedule_worker_cron %>"
pipeline_schedule_worker:
cron: "<%= @pipeline_schedule_worker_cron %>"
# Periodically run 'git fsck' on all repositories. If started more than
# once per hour you will have concurrent 'git fsck' jobs.
repository_check_worker:
Loading
Loading
Loading
Loading
@@ -213,10 +213,10 @@ describe 'gitlab::gitlab-rails' do
context 'Scheduled Pipeline settings' do
context 'when the corn pattern is configured' do
it 'sets the cron value' do
stub_gitlab_rb(gitlab_rails: { trigger_schedule_worker_cron: '1 2 3 4 5' })
stub_gitlab_rb(gitlab_rails: { pipeline_schedule_worker_cron: '41 * * * *' })
 
expect(chef_run).to render_file(gitlab_yml_path)
.with_content(/trigger_schedule_worker:\s+cron:\s+"1 2 3 4 5"/)
.with_content(/pipeline_schedule_worker:\s+cron:\s+"41/)
end
end
 
Loading
Loading
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