-
Notifications
You must be signed in to change notification settings - Fork 20
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
[build] --cpus
isn't passed to thru when using --exec
#272
Comments
The issue appears iff the cli build command contains the This alternative way, without
I'm confused about the I see! It's in So the way we invoke things in the actions is not how we usually document how to run nextstrain builds (without |
Ah, yes, that'd be an issue. Nextstrain CLI only passes thru cli/nextstrain/cli/command/build.py Lines 141 to 144 in 7b23f56
|
In those GitHub Actions workflows which launch our pathogen workflows, we use Since 2018, I've wanted to integrate env var management for |
(Summary notes on env var management for Nextstrain CLI and our pathogen workflows.) |
--cpus
to snakemake, required since v7, causing Error: you need to specify the maximum number of CPU cores
--cpus
isn't passed to thru when using --exec
--cpus
isn't passed to thru when using --exec
--cpus
isn't passed to thru when using --exec
This is required for the action to be compatible with snakemake version >5.11.0 which started to require the `--cores` option For more context see: - nextstrain/cli#272 -https://bedfordlab.slack.com/archives/C01LCTT7JNN/p1681324279363569?thread_ts=1681293140.124269&cid=C01LCTT7JNN
This is required for the action to be compatible with snakemake version >5.11.0 which started to require the `--cores` option For more context see: - nextstrain/cli#272 - https://bedfordlab.slack.com/archives/C01LCTT7JNN/p1681324279363569?thread_ts=1681293140.124269&cid=C01LCTT7JNN
This is required for the action to be compatible with snakemake version >5.11.0 which started to require the `--cores` option For more context see: - nextstrain/cli#272 - https://bedfordlab.slack.com/archives/C01LCTT7JNN/p1681324279363569?thread_ts=1681293140.124269&cid=C01LCTT7JNN
Beyond the immediate PRs which will (probably?) close this issue, I think this would be a great thing to prioritise. I remember having to dive into the CLI code to write some of these actions, doubly complicated by my lack of familiarity with |
Current Behavior
Invoking
nextstrain build --docker
or (--aws-batch) does not pass--cores
option to snakemake causing error:Expected behavior
Nextstrain cli passes that argument to snakemake so that the error doesn't happen
How to reproduce
Steps to reproduce the current behavior:
gh repo clone nextstrain/rsv
cd rsv
Environment
Additional context
This error could be behind most of the snakemake workflow errors we've been getting since the snakemake upgrade in docker.
The text was updated successfully, but these errors were encountered: