Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1621763 update example for na + spcs upgrade #12

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-yxu
Copy link

No description provided.

@@ -1,5 +1,4 @@
set -e
snow sql -f "prepare/spcs_setup.sql"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need this anymore. Please see https://snowflakecomputing.atlassian.net/browse/SNOW-1527720

@sfc-gh-yxu sfc-gh-yxu force-pushed the yxu_SNOW-1621763_na_spcs_upgrade branch from 95dc76e to 384b058 Compare August 16, 2024 12:39
--wait for 300 seconds, but it will stop if two services have READY status,
-- or any of the services has the FAILED status.
select system$wait_for_services(300, 'app_public.backend', 'app_public.frontend');

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handle the failure to create service
Should throw exception to force app failure?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know what the best practice is from the NA+SPCS team? That's what we want to have here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a test and found out that if the service was not available or not ready, it will fail

@sfc-gh-yxu sfc-gh-yxu marked this pull request as ready for review September 3, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants