-
Notifications
You must be signed in to change notification settings - Fork 660
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
Conversation
Signed-off-by: Paolo Di Tommaso <[email protected]>
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Can we put it under a CLI option? |
Think as a user you may want to disable it more once for all system-wide |
So an environment variable? Makes sense |
Yep, an env variable. |
I just realized you already had the env variable... should have read the entire PR 🤦 |
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. |
Think it's mostly related to my slow connection. Can you please give it a try? |
# 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 |
81f7cb7
to
8a43489
Compare
Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
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.