8000 Fix SQL creation conflict (#8220) · sreza/python-docs-samples@6af66c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6af66c9

Browse files
authored
Fix SQL creation conflict (GoogleCloudPlatform#8220)
1 parent e032732 commit 6af66c9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

run/django/e2e_test_setup.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
args:
2020
- "-c"
2121
- |
22-
WAIT=30 ./retry.sh "gcloud sql databases create ${_DB_NAME} \
22+
WAIT=120 ./retry.sh "gcloud sql databases create ${_DB_NAME} \
2323
--instance ${_DB_INSTANCE} \
2424
--project ${PROJECT_ID}"
2525
@@ -30,7 +30,7 @@ steps:
3030
- "-c"
3131
- |
3232
echo -n "${_DB_PASS}" > db_password
33-
./retry.sh "gcloud sql users create ${_DB_USER} \
33+
WAIT=120 ./retry.sh "gcloud sql users create ${_DB_USER} \
3434
--password $(cat db_password) \
3535
--instance ${_DB_INSTANCE} \
3636
--project ${PROJECT_ID}"

run/idp-sql/e2e_test_setup.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ steps:
2020
args:
2121
- '-c'
2222
- |
23-
WAIT=30 ./retry.sh "gcloud sql databases create ${_DB_NAME} \
23+
sleep 120 # To reduce conflict with other sample SQL creation
24+
WAIT=120 ./retry.sh "gcloud sql databases create ${_DB_NAME} \
2425
--instance ${_DB_INSTANCE} \
2526
--project $PROJECT_ID"
2627

0 commit comments

Comments
 (0)
0