Add SLURM_CONF to kept environment variables#52
Open
gmanthey wants to merge 1 commit into
Open
Conversation
SLURM_CONF keeps a path to the main slurm configuration file in case it is not in the default path. This should always be kept in the environment as otherwise any slurm commands fail.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe environment-variable allowlist used to sanitize the environment for nested srun/sbatch calls in Executor.run_job was extended to include SLURM_CONF, preventing it from being stripped from popen_env during job step execution. ChangesEnvironment variable allowlist update
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi all,
first of all, thanks a lot for this great tool, I've been enjoying using snakemake a lot recently! I've only just now, when dealing with a different issue (#46 (comment)), updated to the latest version of this plugin, only to find out that nothing related to slurm submission works anymore. It seems that on my cluster we are using a non-default path to the slurm configuration, which is passed to slurm in the environment variable
SLURM_CONF. However this variable is now being removed from the environment, causing various issues.I've raised this first in a comment on the PR causing the issue, but have now decided to just put in a PR given how simple the fix is.
Cheers!
Georg
Summary by CodeRabbit
SLURM_CONFwhen launching nested job steps, helpingsruninherit the expected Slurm configuration in step-based executions.