Skip to content

Commit

Permalink
ENH: Add output from example 02
Browse files Browse the repository at this point in the history
  • Loading branch information
pan14001 committed Apr 23, 2019
1 parent 1bdd3b8 commit f16aa34
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,36 @@ To re-run the program you would need to delete the *.joblog file.

Run the resumable example with:

```sh
rm -f submit.out joblog; touch submit.out; for _ in {1..5} ; do sbatch --partition debug 02-submit-resumable.slurm; done; tail -f submit.out
```
rm -f submit.out joblog; touch submit.out; for _ in {1..5} ; do sbatch --partition debug -N1 02-submit-resumable.slurm ; done; tail -f submit.out
```

```sh
# Inside your submit.out
Submitted batch job 2320058
Submitted batch job 2320059
Submitted batch job 2320060
Submitted batch job 2320061
Submitted batch job 2320062
Started SLURM job 2320058
Task 5 started (seed 2320058, random number 0) ... succeeded!
Task 2 started (seed 2320058, random number 1) ... failed!
Task 4 started (seed 2320058, random number 2) ... failed!
Task 1 started (seed 2320058, random number 3) ... failed!
Task 3 started (seed 2320058, random number 4) ... succeeded!
Completed SLURM job 2320058 in 00:00:05
Started SLURM job 2320059
Task 4 started (seed 2320059, random number 1) ... failed!
Task 2 started (seed 2320059, random number 3) ... failed!
Task 1 started (seed 2320059, random number 4) ... succeeded!
Completed SLURM job 2320059 in 00:00:04
Started SLURM job 2320060
Task 2 started (seed 2320060, random number 0) ... succeeded!
Task 4 started (seed 2320060, random number 0) ... succeeded!
Completed SLURM job 2320060 in 00:00:00
Started SLURM job 2320061
Completed SLURM job 2320061 in 00:00:01
Started SLURM job 2320062
Completed SLURM job 2320062 in 00:00:00
^C
```
1 change: 1 addition & 0 deletions examples/02-submit-resumable.slurm
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ parallel $parallel_opts \
--line-buffer \
./script_that_sometimes_fails.sh \
::: $(seq $SLURM_NTASKS)
echo "Completed SLURM job $SLURM_JOB_ID in $(sacct -nXj $SLURM_JOB_ID -o elapsed)"

0 comments on commit f16aa34

Please sign in to comment.