diff --git a/manifests/init.pp b/manifests/init.pp index 0f170a88..aec6b872 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -133,7 +133,8 @@ # be done incrementally with benchmarking at each step to determine an optimal value for your deployment. # # @param worker_ttl -# The number of seconds before a pulpcore worker should be considered lost. +# The number of seconds before a pulpcore worker should be considered lost. If undefined, pulpcore will use its default setting which is 30 seconds as of +# pulpcore version 3.14. You should not need to modify this setting unless the application reports workers timing out while they are busy completing tasks. # # @param use_rq_tasking_system # Use the older RQ workers tasking system instead of the newer PostgreSQL tasking system introduced in Pulpcore 3.14. diff --git a/spec/acceptance/basic_spec.rb b/spec/acceptance/basic_spec.rb index 28940cc0..0ffd7e49 100644 --- a/spec/acceptance/basic_spec.rb +++ b/spec/acceptance/basic_spec.rb @@ -76,10 +76,6 @@ class { 'pulpcore': describe command("PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager diffsettings") do its(:stdout) { is_expected.to match(/^USE_NEW_WORKER_TYPE = True/) } - its(:exit_status) { is_expected.to eq 0 } - end - - describe command("PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager diffsettings") do its(:stdout) { is_expected.to match(/^WORKER_TTL = 30/) } its(:exit_status) { is_expected.to eq 0 } end diff --git a/spec/classes/pulpcore_spec.rb b/spec/classes/pulpcore_spec.rb index 17d5d7bb..2381af7b 100644 --- a/spec/classes/pulpcore_spec.rb +++ b/spec/classes/pulpcore_spec.rb @@ -514,14 +514,10 @@ end end - context 'can change the worker_ttl to 60' do - let :params do - { - worker_ttl: 60 - } - end + context 'with parameter worker_ttl = 60' do + let :params { worker_ttl: 60 } - it do + it 'configures pulpcore with setting WORKER_TTL = 60' do is_expected.to contain_concat__fragment('base') .with_content(%r{\sWORKER_TTL = 60}) end