Skip to content
Snippets Groups Projects
Commit 018f9a51 authored by egon w. stemle's avatar egon w. stemle
Browse files

Force exit on individual healthcheck commands

We use `timeout` from the coreutils package (should be part of many basic
installations - maybe with a different name) to force the individual
healthcheck commands too exit after a predefined timeout (300s); if this
doesn't help, send a SIGKILL.

This should help with the initial problem of hanging. A next step should
be to catch the `timeout` invoked exit and log this as an exceptional
happening.

Address #60
parent 703e0f4b
No related branches found
No related tags found
No related merge requests found
...@@ -20,13 +20,13 @@ make init_statistics ...@@ -20,13 +20,13 @@ make init_statistics
# https://ubuntuforums.org/showthread.php?t=979694 # https://ubuntuforums.org/showthread.php?t=979694
# Start process in the background and send its output to file descriptor 3 # Start process in the background and send its output to file descriptor 3
exec 3< <(while (true); do exec 3< <(while (true); do
make update_oai timeout -k 30 300 make update_oai
make update_statistics timeout -k 30 300 make update_statistics
make update_sitemap timeout -k 30 300 make update_sitemap
make lift_embargos timeout -k 30 300 make lift_embargos
make update_openaire_cache timeout -k 30 300 make update_openaire_cache
make update_discovery timeout -k 30 300 make update_discovery
make send_info timeout -k 30 300 make send_info
echo "INIT DONE." echo "INIT DONE."
sleep 86400 sleep 86400
done) done)
......
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