Skip to content

Commit

Permalink
More reliable mirror name search attribute script (#737)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Amogh-Bharadwaj authored Nov 29, 2023
1 parent fdd4979 commit f515530
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/mirror-name-search.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f515530

Please sign in to comment.