-
Notifications
You must be signed in to change notification settings - Fork 36
fix: allow unsetting of tasks for gpu jobs #318
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
Conversation
WalkthroughThe update changes how SLURM submission commands are constructed for jobs requesting GPUs. It introduces a Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SnakemakeJob
participant SubmitString
User->>SnakemakeJob: Define job resources (gpus, tasks, tasks_per_gpu)
SnakemakeJob->>SubmitString: Call get_submit_command(job, params)
alt Job requests GPUs
alt tasks_per_gpu >= 1
SubmitString->>SubmitString: Add --ntasks-per-gpu <tasks_per_gpu>
else tasks_per_gpu < 1
SubmitString->>SubmitString: Omit --ntasks-per-gpu
end
else Non-GPU job
SubmitString->>SubmitString: Add --ntasks <tasks>
end
SubmitString-->>SnakemakeJob: Return SLURM command string
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings
snakemake_executor_plugin_slurm/submit_string.py (10)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
Documentation and Community
|
This is a draft PR for now - requires documentation and more testing. |
🤖 I have created a release *beep* *boop* --- ## [1.6.0](v1.5.0...v1.6.0) (2025-07-22) ### Features * added github action to label long pending issues as 'stale' ([#239](#239)) ([6d7c50a](6d7c50a)) * treat sbatch errors as job errors instead of workflow errors ([#322](#322)) ([5e38507](5e38507)) * using the current version of the announcement bot for Mastodon ([#333](#333)) ([03e0e24](03e0e24)) ### Bug Fixes * allow unsetting of tasks for gpu jobs ([#318](#318)) ([53ac8b0](53ac8b0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated the changelog to include details for version 1.6.0, highlighting new features and bug fixes. * **Chores** * Bumped the package version to 1.6.0. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
this PR should fix #316 - python's process management seems to interfere with SLURM tasks under unknown circumstances. Unsetting the tasks per gpu might be a solution.
If a user defined
tasks
<= 0, the--ntasks-per-gpu
flag is not issued.Summary by CodeRabbit
New Features
Bug Fixes
--ntasks-per-gpu
and--ntasks
options, allowing greater flexibility and correct omission when appropriate.