fix: unify error logging in scheduler, fixing a missing attribute error for group jobs#3515
fix: unify error logging in scheduler, fixing a missing attribute error for group jobs#3515johanneskoester merged 1 commit intomainfrom
Conversation
…or for group jobs
📝 WalkthroughWalkthroughThe pull request refactors the error logging in the Changes
Sequence Diagram(s)sequenceDiagram
participant JS as JobScheduler
participant Job as Job Instance
JS->>+Job: Invoke log_error() on each job in self.failed
Job-->>-JS: Log error
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.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 the `s...
🧬 Code Definitions (1)src/snakemake/scheduler.py (1)
⏰ Context from checks skipped due to timeout of 90000ms (22)
🔇 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:
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 (
|
🤖 I have created a release *beep* *boop* --- ## [9.1.8](v9.1.7...v9.1.8) (2025-04-07) ### Bug Fixes * improve labelling of input and output files when logging rules ([#3516](#3516)) ([56203a4](56203a4)) * unify error logging in scheduler, fixing a missing attribute error for group jobs ([#3515](#3515)) ([245ec10](245ec10)) ### Documentation * activate gurubase AI ([#3517](#3517)) ([eaffc6e](eaffc6e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…or for group jobs (snakemake#3515) ### 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). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Revised error logging in the job scheduling process by removing distinctions based on job type. All failed jobs are now handled uniformly, leading to more consistent and clear error reporting. These changes facilitate improved diagnostics and system maintainability, ultimately supporting a transparent and reliable user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
🤖 I have created a release *beep* *boop* --- ## [9.1.8](snakemake/snakemake@v9.1.7...v9.1.8) (2025-04-07) ### Bug Fixes * improve labelling of input and output files when logging rules ([snakemake#3516](snakemake#3516)) ([56203a4](snakemake@56203a4)) * unify error logging in scheduler, fixing a missing attribute error for group jobs ([snakemake#3515](snakemake#3515)) ([245ec10](snakemake@245ec10)) ### Documentation * activate gurubase AI ([snakemake#3517](snakemake#3517)) ([eaffc6e](snakemake@eaffc6e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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