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

wait for Dataverse to be ready (sleep a bit) before executing ./setup-all.sh #10766

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

link89
Copy link

@link89 link89 commented Aug 10, 2024

What this PR does / why we need it:
Reduce the chance of blank page (404 error) after a fresh install by install.py

Which issue(s) this PR closes:
This is not a solid fix but a quick workaround to reduce the chance of such error, related issues are:

Special notes for your reviewer:
Replace the time.sleep if you know a better way to check the status of dataverse.

Suggestions on how to test this:
Run fresh installation process.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No

@pdurbin pdurbin added Component: Code Infrastructure formerly "Feature: Code Infrastructure" Size: 3 A percentage of a sprint. 2.1 hours. labels Aug 12, 2024
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

I left a comment but more importantly, we should decide if we want this or not. @landreev wrote install.py so I'd like to hear what he thinks.

Also, I'm not sure if this is worth a release note snippet or not. I don't mind too much that there isn't one.

Comment on lines +553 to 558

time.sleep(20) # wait for the deployment to complete

# @todo: find a better way to wait for the deployment to complete rather than just sleeping
# @todo: restart/try to deploy again if it failed?
# @todo: if asadmin deploy says it was successful, verify that the application is running... if not - repeat the above?
Copy link
Member

Choose a reason for hiding this comment

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

I think it would make more sense to have the sleep AFTER the todo's.

@pdurbin pdurbin changed the title wait dataverse to ready before execute ./setup-all.sh wait for Dataverse to be ready (sleep a bit) before executing ./setup-all.sh Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Code Infrastructure formerly "Feature: Code Infrastructure" Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants