-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8da0db2
commit 0602a2a
Showing
5 changed files
with
44 additions
and
20 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
24 changes: 24 additions & 0 deletions
24
workflows/config/snakemake/oregon_profile_simple/status-sacct.sh
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,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Check status of Slurm job | ||
|
||
jobid="$1" | ||
|
||
if [[ "$jobid" == Submitted ]] | ||
then | ||
echo smk-simple-slurm: Invalid job ID: "$jobid" >&2 | ||
echo smk-simple-slurm: Did you remember to add the flag --parsable to your sbatch call? >&2 | ||
exit 1 | ||
fi | ||
|
||
output=`sacct -j "$jobid" --format State --noheader | head -n 1 | awk '{print $1}'` | ||
|
||
if [[ $output =~ ^(COMPLETED).* ]] | ||
then | ||
echo success | ||
elif [[ $output =~ ^(RUNNING|PENDING|COMPLETING|CONFIGURING|SUSPENDED).* ]] | ||
then | ||
echo running | ||
else | ||
echo failed | ||
fi |
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 @@ | ||
# General configs | ||
seed: 12345 | ||
replicates: 200 | ||
replicates: 1_000 | ||
output_dir: results | ||
|
||
# Contig configs | ||
|
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