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

Add check for latest version #4194

Merged
merged 3 commits into from
Sep 3, 2023
Merged

Add check for latest version #4194

merged 3 commits into from
Sep 3, 2023

Conversation

pditommaso
Copy link
Member

This PR adds the check for latest version of Nextflow on startup, printing a notification message is available.

The check can be disabled using the env variable NXF_DISABLE_CHECK_LATEST.

However, with some basic test it looks like it takes ~4-500ms for a simple http request, which is too slow.

@netlify
Copy link

netlify bot commented Aug 15, 2023

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 33faa92
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/64f472ef5e1ddb000862764b
😎 Deploy Preview https://deploy-preview-4194--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pditommaso pditommaso requested a review from bentsherman August 15, 2023 14:46
@bentsherman
Copy link
Member

Can we put it under a CLI option?

@pditommaso
Copy link
Member Author

Think as a user you may want to disable it more once for all system-wide

@bentsherman
Copy link
Member

So an environment variable? Makes sense

@pditommaso
Copy link
Member Author

Yep, an env variable.

@bentsherman
Copy link
Member

I just realized you already had the env variable... should have read the entire PR 🤦

@bentsherman
Copy link
Member

If you don't like how long the HTTP request takes, then I would just switch the env variable to enable it rather than disable it.

@pditommaso
Copy link
Member Author

Think it's mostly related to my slow connection. Can you please give it a try?

@bentsherman
Copy link
Member

# check for update
- check_latest
+ time check_latest
$ for i in `seq 10`; do nextflow info 2>&1 | grep real ; done
real    0m0.112s
real    0m0.075s
real    0m0.072s
real    0m0.081s
real    0m0.070s
real    0m0.070s
real    0m0.084s
real    0m0.073s
real    0m0.075s
real    0m0.074s

@pditommaso pditommaso force-pushed the master branch 2 times, most recently from 81f7cb7 to 8a43489 Compare August 20, 2023 20:13
@pditommaso pditommaso merged commit 3e8cd48 into master Sep 3, 2023
@pditommaso pditommaso deleted the add-check-latest branch September 3, 2023 11:50
@pditommaso pditommaso added this to the 23.10.0 milestone Sep 10, 2023
abhi18av pushed a commit to abhi18av/nextflow that referenced this pull request Oct 28, 2023
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