Skip to content

Commit

Permalink
Merge pull request #9 from CircleCI-Public/server-1349
Browse files Browse the repository at this point in the history
[server-1349] restarting postgres during restore process
  • Loading branch information
soulchips authored Sep 15, 2021
2 parents 6de4332 + d429725 commit 85187e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions migrate/3.0-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ function circleci_database_import() {
then
echo "...scaling application deployments to 0..."
scale_deployments 0

# if postgres is internal, delete pod to clear any remaining connections
if [ ! "$SKIP_POSTGRES" = "true" ];
then
kubectl delete pod -l app.kubernetes.io/name=postgresql -n "$NAMESPACE"
fi

# wait one minute for pods to scale down
sleep 60
Expand Down
1 change: 0 additions & 1 deletion migrate/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ init_options() {

if [ ${#POSITIONAL[@]} -gt 0 ]
then
echo ${POSITIONAL[@]}
help_init_options
exit 1
fi
Expand Down

0 comments on commit 85187e4

Please sign in to comment.