-
Notifications
You must be signed in to change notification settings - Fork 1
/
submit
executable file
·44 lines (31 loc) · 972 Bytes
/
submit
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
#!/bin/bash
set -e
HNAME=`hostname -f`
if [ "x$HNAME" != "xlogin03.osgconnect.net" ]; then
echo "This workflow has to be submitted from login03.osgconnect.net"
exit 1
fi
# needed for stashcp to be picked up the site catalog for the local site
module load stashcache
TOPDIR=`pwd`
export RUN_ID=osg-mcf10-mod-`date +'%s'`
export RUN_DIR=/local-scratch/$USER/workflows/$RUN_ID
mkdir -p $RUN_DIR
COMPUTE_SITE="osg-condorpool"
STAGING_SITE="osg-stash"
# tar up the model code
(cd Mechanistic_Pan-Cancer_Model && tar czf $RUN_DIR/Mechanistic_Pan-Cancer_Model.tar.gz .)
envsubst < "sites.xml.template" > "sites.xml"
# generate the dax
export PYTHONPATH=`pegasus-config --python`
./tools/dax-generator $RUN_ID $RUN_DIR
pegasus-plan \
--conf pegasus.conf \
--cluster horizontal \
--relative-dir $RUN_ID \
--sites $COMPUTE_SITE \
--staging-site $STAGING_SITE \
--output-site local \
--dir $RUN_DIR \
--dax dax.xml \
--submit