-
Notifications
You must be signed in to change notification settings - Fork 223
Implement wave container commands #3954
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
base: dev
Are you sure you want to change the base?
Implement wave container commands #3954
Conversation
…anFlesch/nf-core-tools into feature/3952-create-waveyml
…t instead of printing. simplify checks
…/nf-core-tools into feature/3952-create-waveyml
…/nf-core-tools into feature/3952-create-waveyml
| IMAGE_KEY = "name" | ||
| BUILD_ID_KEY = "buildId" | ||
| SCAN_ID_KEY = "scanId" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think any of these will change in the future. clearer if we just use them as strings in the code I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't feel strongly about this, I think we should keep them. They only exist in the class scope, close to where they are being used, but there we use them quite a lot as it helps us to not have redundant literals
nf_core/modules/containers.py
Outdated
| for platform in CONTAINER_PLATFORMS: | ||
| containers[cs][platform] = self.request_container(cs, platform, env_path, await_, dry_run) | ||
|
|
||
| for platform in CONTAINER_PLATFORMS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to loop twice over container_platforms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it makes it more readable what's being done with being less nested and clearly separated. But for comparing, applied your suggestion in af97d90
Fix typo Co-authored-by: Matthias Hörtenhuber <[email protected]>
|
…n favor of attempting to build it.
| fut = pool.submit(self.request_container, cs, platform, self.condafile, await_) | ||
| tasks[fut] = (cs, platform) | ||
|
|
||
| for fut in as_completed(tasks): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why fut?
Closes #3952
PR checklist
CHANGELOG.mdis updateddocsis updated