Revision 69bdebcc
Added by Eric Helms over 2 years ago
spec/acceptance/basic_spec.rb | ||
---|---|---|
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
|
||
|
||
describe command("DJANGO_SETTINGS_MODULE=pulpcore.app.settings PULP_SETTINGS=/etc/pulp/settings.py rq info -c pulpcore.rqconfig") do
|
||
its(:stdout) { is_expected.to match(/^0 workers, /) }
|
||
its(:stdout) { is_expected.not_to match(/^resource-manager /) }
|
Also available in: Unified diff
Fixes #33446: Allow setting the time until a worker is considered lost
This change implements the WORKER_TTL setting which lets Pulp decide
how long to wait for a worker to respond before considering it gone
and cleaning up it's database and re-assiging work.