This commit is contained in:
Oleg Sheynin 2024-07-25 10:22:51 -04:00
parent ce68165eef
commit fe4b0611c7
2 changed files with 12 additions and 3 deletions

View File

@ -1 +1 @@
1.0.8
1.0.9

View File

@ -19,8 +19,17 @@ is_container_running() {
if [ -z ${date_to_load} ] ; then
echo "Yesterday data has priority. Running historical container will be killed"
docker kill ${ContainerName}
echo "Yesterday data has priority. Running historical container will be stopped"
Cmd="docker stop ${ContainerName}"
echo ${Cmd} && eval ${Cmd}
Cmd="docker ps"
echo ${Cmd} && eval ${Cmd}
if is_container_running "$ContainerName"; then
echo "Container ${ContainerName} is still running."
exit 3
fi
else
echo "Historical run ${date_to_load}"
if is_container_running "$ContainerName"; then