mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
[docs] try more aggressive httpd shutdown
This commit is contained in:
parent
cffa45608f
commit
3fbc62d23e
@ -258,8 +258,15 @@ def build_single_page_version(lang, args, cfg):
|
||||
logging.info(' '.join(create_pdf_command))
|
||||
subprocess.check_call(' '.join(create_pdf_command), shell=True)
|
||||
finally:
|
||||
logging.info(f"Stop serving for {lang} pdf at port {port_for_pdf}")
|
||||
process.terminate()
|
||||
logging.info(f"Stop serving for {lang} pdf at port {port_for_pdf}"))
|
||||
process.kill()
|
||||
while True:
|
||||
time.sleep(0.25)
|
||||
try:
|
||||
process.close()
|
||||
break
|
||||
except ValueError:
|
||||
logging.info(f"Waiting for {lang} httpd at port {port_for_pdf} to stop")
|
||||
|
||||
|
||||
if not args.version_prefix: # maybe enable in future
|
||||
|
Loading…
Reference in New Issue
Block a user