From f5155301bb6124522f59e40f9857384f33cd78ca Mon Sep 17 00:00:00 2001 From: Amogh Bharadwaj Date: Wed, 29 Nov 2023 14:58:32 +0530 Subject: [PATCH] More reliable mirror name search attribute script (#737) Noticed that temporal was not ready yet and so temporal-admin-tools could not list attributes Now sleeping for 5 seconds. Tested it and now the above issue wasn't reproducible by me Also adding `-s` to tini command as suggested by warnings --- scripts/mirror-name-search.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/mirror-name-search.sh b/scripts/mirror-name-search.sh index c4f738a67a..da50963d72 100644 --- a/scripts/mirror-name-search.sh +++ b/scripts/mirror-name-search.sh @@ -1,7 +1,9 @@ +sleep 5 + # Check if MirrorName attribute exists if ! temporal operator search-attribute list | grep -w MirrorName >/dev/null 2>&1; then # If not, create MirrorName attribute - temporal operator search-attribute create --name MirrorName --type Text + temporal operator search-attribute create --name MirrorName --type Text --namespace default fi -tini -- sleep infinity +tini -s -- sleep infinity