-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/requeue-flag
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "snakemake-executor-plugin-slurm" | ||
version = "0.9.0" | ||
version = "0.10.0" | ||
description = "A Snakemake executor plugin for submitting jobs to a SLURM cluster." | ||
authors = [ | ||
"Christian Meesters <[email protected]>", | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# utility functions for the SLURM executor plugin | ||
|
||
import os | ||
|
||
|
||
def delete_slurm_environment(): | ||
""" | ||
Function to delete all environment variables | ||
starting with 'SLURM_'. The parent shell will | ||
still have this environment. This is needed to | ||
submit within a SLURM job context to avoid | ||
conflicting environments. | ||
""" | ||
for var in os.environ: | ||
if var.startswith("SLURM_"): | ||
del os.environ[var] |