Conversation
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@pditommaso and @bentsherman For the changes for v1, I have added the 'v1' in the path to do not change the environment variable. However, there are other options to manage it: I think (2) makes more sense, but I would like to know your opinion. The same is happening for the gradle plugin and the nf-plugin-template. Depending on what we include in the URL, we need to update the template, the plugin or both. |
|
The "correct" way it to keep as parameter api root path ie. |
Then, this PR does not require more changes and I will create a PR in the gradle plugin to support v1. |
|
Worth adding a retry logic e.g I've made a little library to wrap the FailSafe boilerplate into a reusable component, see here https://github.com/seqeralabs/libseqera/tree/master/lib-retry |
|
There is already a retry logic with FailSafe here. I see it is not using the common RetryConfig, defaults are hardcoded. I will modify to use it. Or do you prefer to replace this retry logic by lib-retry? |
|
Maybe i'm missing something, what about these sends |
|
Ah! yes, you are right. I was just looking at the fetch part. |
|
Then let's adopt the new lib consistently at least here |
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
|
I have created a common The retry configuration for these calls is obtained from the common retry configuration I tried to use the lib-retry |
bentsherman
left a comment
There was a problem hiding this comment.
Please allow me to review the config classes before merging. I need to make sure everything will work with the config refactor in #6271
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
This reverts commit cbd58d4.
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
bentsherman
left a comment
There was a problem hiding this comment.
Everything looks good from my side. We ended up not involving the retry config since it isn't essential. Now we just need to test against the registry
## Key Changes **RetryConfig Enhancement & Movement:** - Move RetryConfig from nextflow to nf-commons module for better reusability - Add support for multiplier parameter in retry configuration - Replace navigate() dependency with static compilation-friendly getNestedConfig() helper - Add NXF_RETRY_POLICY_MULTIPLIER environment variable (default: 2.0) **HTTP Client Modernization:** - Replace custom HttpRetryableClient with external io.seqera:lib-httpx library - Update HttpPluginRepository to use HxClient for better reliability - Enhanced OciAwareFileDownloader with improved authentication and error handling **Documentation:** - Add NXF_PLUGINS_REGISTRY_URL and NXF_RETRY_POLICY_MULTIPLIER to env-vars.md - Document retry policy multiplier configuration for exponential backoff **Dependencies:** - Add io.seqera:lib-httpx:1.0.0 and io.seqera:lib-retry:1.2.0 - Remove custom HTTP retry implementation in favor of external libraries This refactoring improves the plugin system's HTTP infrastructure reliability while maintaining backward compatibility and adding new configuration flexibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Latest Updates - Plugin HTTP Infrastructure RefactoringKey ChangesRetryConfig Enhancement & Movement:
HTTP Client Modernization:
Documentation:
Dependencies:
This refactoring improves the plugin system's HTTP infrastructure reliability while maintaining backward compatibility and adding new configuration flexibility. |
This PR includes two changes to integrate Nextflow with plugin registry updates:
POST /plugins/collect->GET /v1/plugins/dependencies