-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathpbs.sh
43 lines (36 loc) · 1.61 KB
/
pbs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
function jobqueue_before_install {
docker version
docker compose version
# start pbs cluster
cd ./ci/pbs
docker compose build
./start-pbs.sh
cd -
#Set shared space permissions
docker exec pbs_master /bin/bash -c "chmod -R 777 /shared_space"
docker exec pbs_master /bin/bash -c "chown -R pbsuser:pbsuser /home/pbsuser"
docker exec -u pbsuser pbs_master pbsnodes -a
docker ps -a
docker images
}
function jobqueue_install {
docker exec pbs_master conda run -n dask-jobqueue /bin/bash -c "cd /dask-jobqueue; pip install -e .; chown -R pbsuser ."
}
function jobqueue_script {
docker exec -u pbsuser pbs_master conda run -n dask-jobqueue /bin/bash -c "cd; pytest /dask-jobqueue/dask_jobqueue --verbose -s -E pbs"
}
function jobqueue_after_script {
docker exec -u pbsuser pbs_master qstat -fx
docker exec pbs_master bash -c 'cat /var/spool/pbs/sched_logs/*|| true'
docker exec pbs_master bash -c 'cat /var/spool/pbs/server_logs/*|| true'
docker exec pbs_master bash -c 'cat /var/spool/pbs/server_priv/accounting/*|| true'
docker exec pbs_slave_1 bash -c 'cat /var/spool/pbs/mom_logs/*|| true'
docker exec pbs_slave_1 bash -c 'cat /var/spool/pbs/spool/*|| true'
docker exec pbs_slave_1 bash -c 'cat /tmp/*.e*|| true'
docker exec pbs_slave_1 bash -c 'cat /tmp/*.o*|| true'
docker exec pbs_slave_2 bash -c 'cat /var/spool/pbs/mom_logs/*|| true'
docker exec pbs_slave_2 bash -c 'cat /var/spool/pbs/spool/*|| true'
docker exec pbs_slave_2 bash -c 'cat /tmp/*.e*|| true'
docker exec pbs_slave_2 bash -c 'cat /tmp/*.o*|| true'
}