forked from snakemake/snakemake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix handling of --jobs in no-exec state (snakemake#2029)
When running in any no-exec mode (e.g. `--dag`, `--report`), `--jobs` was getting left as a string, leading to workflow errors. This PR takes the opportunity to refactor the jobs and cores parsing code, which was very convoluted. Parsing is split into three basic possibilities: `no_exec` mode, `non_local_exec` mode, and `local_mode`. `jobs` and `cores` are both set appropriately given the context. A test is provided to test the new parsing function. Resolves snakemake#1589 ### QC <!-- Make sure that you can tick the boxes below. --> * [x] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [x] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).
- Loading branch information
Showing
3 changed files
with
132 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters