File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
ansible/roles/hpctests/tasks Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 18
18
dest : " {{ hpctests_rootdir }}/pingpong/pingpong.sh"
19
19
20
20
- name : Run pingpong
21
- shell : sbatch --wait pingpong.sh
22
- become : no
23
- args :
24
- chdir : " {{ hpctests_rootdir }}/pingpong"
25
- register : hpctests_pingpong_sbatch
21
+ block :
22
+ - name : Submit jobscript
23
+ shell : sbatch --wait pingpong.sh
24
+ become : no
25
+ args :
26
+ chdir : " {{ hpctests_rootdir }}/pingpong"
27
+ register : hpctests_pingpong_sbatch
28
+ rescue :
29
+ - name : Get slurm job output
30
+ slurp :
31
+ src : " {{ hpctests_rootdir }}/pingpong/pingpong.sh.out"
32
+ register : _pingpong_out
33
+ - name : Show job output
34
+ debug :
35
+ msg : |
36
+ PingPong output was:
37
+
38
+ {{ _pingpong_out.content | b64decode }}
39
+ failed_when : true
26
40
27
41
- set_fact :
28
42
_pingpong_jobid : " {{ hpctests_pingpong_sbatch.stdout.split()[-1] }}"
You can’t perform that action at this time.
0 commit comments