chore: assert that jobcount is unrestricted if no max-jobs-per-timespan is set#3066
Conversation
WalkthroughThe changes in the Snakemake scheduler involve modifications to the initialization process and job selection logic. The assignment of Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- snakemake/scheduler.py (2 hunks)
Additional context used
Path-based instructions (1)
snakemake/scheduler.py (1)
Pattern
**/*.py: Do not try to improve formatting.
Do not suggest type annotations for functions that are defined inside of functions or methods.
Do not suggest type annotation of theselfargument of methods.
Do not suggest type annotation of theclsargument of classmethods.
Do not suggest return type annotation if a function or method does not contain areturnstatement.
Additional comments not posted (2)
snakemake/scheduler.py (2)
477-478: LGTM!The assertion correctly ensures that the
_job_countresource is unrestricted when no job rate limiting is configured.
Line range hint
1-1: LGTM!Excluding the
_job_countresource from being updated inupdate_available_resourcesis the correct behavior since it's now managed by theJobRateLimiterbefore scheduling.
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- snakemake/scheduler.py (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- snakemake/scheduler.py



QC
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).Summary by CodeRabbit
New Features
Bug Fixes