Closed cmeesters closed 2 weeks ago
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request focus on enhancing error handling in the snakemake_executor_plugin_slurm/__init__.py
file during SLURM job submissions. The error-checking mechanism was refined to specifically look for the phrase "submission failed" in error outputs. Additionally, the run_job
method now provides clearer feedback on job submission failures. Minor adjustments to comments and formatting were also made, but the overall control flow and method signatures remained unchanged.
File Path | Change Summary |
---|---|
snakemake_executor_plugin_slurm/init.py | Enhanced error handling in run_job method to check for specific error messages and improve feedback on job submission failures. Minor formatting and comment adjustments made. |
run_job
method in the same file, enhancing error handling during job execution, which is closely related to the error handling improvements made in the main PR.run_job
method by improving how standard output and error are processed during SLURM job submission, aligning with the main PR's focus on refining error reporting mechanisms.🐰 In the meadow, where bunnies play,
A job submission went astray.
With clearer errors, now we see,
What went wrong, oh joy and glee!
So hop along, let’s fix the flow,
With each detail, our knowledge will grow! 🌼
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?
I'm happy to report that it works as expected!
@fgvieira Hoi Filipe, time for another go? ;-)
Sure! :)
The two error messages are identical and that might make it a bit hard to figure out why it failed. Could we make one of the messages more specific?
Hm, I am open to suggestions, because, yes: to a human reader it looks redundant. I assume, that you are referring to lines 232-238? The thing is: one is catching an error from lauchning the process itself. If it occurs, the likely cause is a cluster failure of some kind, where sbatch
does not work. The 2nd is checking, whether some weird admins overwrote sbatch
and give additional output to stderr
, which ordinarily only happens upon error. I have no idea how to merge this conceptionally. Do you?
I did not meant merge them, but maybe have slightly different error messages so it is easier to identify where the error comes from.
EDIT: made a suggestion
yeah, fine. Inserting a clarification and distinction is just good.
@fgvieira I truncated the error string again - otherwise the linter will fail. Breaking the string in a multiline string yielded ugly output. The current string is a compromise.
next attempt to fix the behaviour described in #161
Summary by CodeRabbit
Bug Fixes
sbatch
command failures.Chores