Skip to content
Snippets Groups Projects
Commit ec76b387 authored by DJ Mountney's avatar DJ Mountney
Browse files

Merge branch 'add-invitation-reminder-emails-cron-worker' into 'master'

Add member invitation reminder emails cron worker

See merge request gitlab-org/omnibus-gitlab!4582
parents b98e52a8 7e0de0b6
No related branches found
No related tags found
No related merge requests found
---
title: Add member invitation reminder emails cron worker
merge_request: 4582
author:
type: other
Loading
Loading
@@ -146,6 +146,7 @@ external_url 'GENERATED_EXTERNAL_URL'
# gitlab_rails['schedule_migrate_external_diffs_worker_cron'] = "15 * * * *"
# gitlab_rails['ci_platform_metrics_update_cron_worker'] = '47 9 * * *'
# gitlab_rails['analytics_instance_statistics_count_job_trigger_worker_cron'] = "50 23 */1 * *"
# gitlab_rails['member_invitation_reminder_emails_worker_cron'] = "0 0 * * *"
 
### Webhook Settings
###! Number of seconds to wait for HTTP response after sending webhook HTTP POST
Loading
Loading
Loading
Loading
@@ -139,6 +139,7 @@ default['gitlab']['gitlab-rails']['geo_prune_event_log_worker_cron'] = nil
default['gitlab']['gitlab-rails']['geo_repository_verification_primary_batch_worker_cron'] = nil
default['gitlab']['gitlab-rails']['geo_repository_verification_secondary_scheduler_worker_cron'] = nil
default['gitlab']['gitlab-rails']['analytics_instance_statistics_count_job_trigger_worker_cron'] = nil
default['gitlab']['gitlab-rails']['member_invitation_reminder_emails_worker_cron'] = nil
default['gitlab']['gitlab-rails']['pseudonymizer_worker_cron'] = nil
default['gitlab']['gitlab-rails']['elastic_index_bulk_cron'] = nil
default['gitlab']['gitlab-rails']['incoming_email_enabled'] = false
Loading
Loading
Loading
Loading
@@ -496,6 +496,12 @@ production: &base
cron: "<%= @analytics_instance_statistics_count_job_trigger_worker_cron %>"
<% end %>
 
# Worker for triggering member invitation reminder emails
<% unless @member_invitation_reminder_emails_worker_cron.nil? %>
member_invitation_reminder_emails_worker:
cron: "<%= @member_invitation_reminder_emails_worker_cron %>"
<% end %>
## Geo
# NOTE: These settings will only take effect if Geo is enabled
geo:
Loading
Loading
Loading
Loading
@@ -1656,6 +1656,28 @@ RSpec.describe 'gitlab::gitlab-rails' do
end
end
 
context 'when member invitation reminder emails worker is configured' do
it 'sets the cron value' do
stub_gitlab_rb(gitlab_rails: { member_invitation_reminder_emails_worker_cron: '1 2 3 4 5' })
expect(chef_run).to create_templatesymlink('Create a gitlab.yml and create a symlink to Rails root').with_variables(
hash_including(
'member_invitation_reminder_emails_worker_cron' => '1 2 3 4 5'
)
)
end
end
context 'when member invitation reminder emails worker is not configured' do
it 'does not set the cron value' do
expect(chef_run).to create_templatesymlink('Create a gitlab.yml and create a symlink to Rails root').with_variables(
hash_including(
'member_invitation_reminder_emails_worker_cron' => nil
)
)
end
end
context 'Cron workers for other EE functionality' do
where(:gitlab_rb_key, :gitlab_yml_key) do
:pseudonymizer_worker_cron | 'pseudonymizer_worker_cron'
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