Commit 4121b746 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

Correção para evitar ficar travado no 'shutdown'.

[SOMA-6978][SOMA-6957]
parent 4ea8552d
......@@ -291,6 +291,11 @@ function server.new(config, logger, client, driver)
copas.sleep(2)
self.logger:info("Shutting down Xavante...")
self.rs:shutdown()
copas.sleep(0) -- to force a new COPAS 'step', so Xavante can
-- revaluate the termination probing function
-- provided by 'restserver'. Otherwise Xavante
-- might only terminate when a new request is
-- received.
end)
return succeed({}, 200)
end,
......
......@@ -15,9 +15,9 @@ const sgaConfig = {
sgad_host: "localhost",
sgad_port: 65432,
sga_name: "SgaForUnitTest",
status_interval_s: 3,
exec_polling_interval_s: 2,
register_retry_s: 1,
status_interval_s: .1,
exec_polling_interval_s: .1,
register_retry_s: .1,
project_root_dir: path.join(testDir, "projects"),
algorithm_root_dir: path.join(testDir, "algorithms"),
runtime_data_dir: path.join(testDir, "runtime"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment