-
Notifications
You must be signed in to change notification settings - Fork 2
/
start-temporal-cli.sh
executable file
·46 lines (28 loc) · 1.02 KB
/
start-temporal-cli.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# If the script does not work for you, you can follow the instructions in "start-temporal-cli.md"
: "${DEFAULT_NAMESPACE:=default}"
: "${FILE_DB:=my_test.db}"
# TODO add delete DB
add_custom_search_attributes() {
until temporal operator search-attribute list --namespace "${DEFAULT_NAMESPACE}"; do
echo "Waiting for namespace..."
sleep 1
done
echo "Adding Custom search attributes, only required for the final exercises "
temporal operator search-attribute create --namespace "${DEFAULT_NAMESPACE}" \
--name TransferRequestStatus --type Keyword
}
setup_server(){
sleep 2
add_custom_search_attributes
sleep 2
echo "------"
echo ">>> Temporal UI >>> http://localhost:8080/"
echo "------"
}
# Run this func in parallel process. It will wait for server to start and then run required steps.
setup_server &
temporal server start-dev \
--dynamic-config-value frontend.enableUpdateWorkflowExecution=true \
--ui-port "8080" \
#--db-filename "${FILE_DB}" \