Skip to content
This repository has been archived by the owner on May 26, 2018. It is now read-only.

Commit

Permalink
Update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Gueudelot committed May 12, 2017
1 parent 7ff9bcb commit ff0eb9c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions examples/pipelines/PirusBasic/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DB="/pipeline/db/"
OUT="/pipeline/outputs/"
IN="/pipeline/inputs/"
LOG="/pipeline/logs/"
RUN="/pipeline/job/"
JOB="/pipeline/job/"

# Dynamic parameters loaded from config.json
FILE1=`cat ${IN}config.json | jq ".job.file1"`
Expand All @@ -21,7 +21,7 @@ NOTIFY_URL=`sed -e 's/^"//' -e 's/"$//' <<<"$NOTIFY_URL"`

echo "START Plugin de test"
echo "===================="
cd ${RUN}
cd ${JOB}
pwd
ls -l

Expand All @@ -47,12 +47,12 @@ echo "Loop"
echo "===="
for i in `seq 0 ${DURATION}`
do
echo "$i %"
curl -X POST -d '{"progress" : {"min":"0", "max":"'${DURATION}'", "value":"'${i}'", "label" : "'${i}' / '${DURATION}'"}}' ${NOTIFY_URL}
if [ ${CRASH} = true ] && [ $i = 24]; then
return 500
fi
sleep 1
echo "$i %"
curl -X POST -d '{"progress" : {"min":"0", "max":"'${DURATION}'", "value":"'${i}'", "label" : "'${i}' / '${DURATION}'"}}' ${NOTIFY_URL}
if [ ${CRASH} = true ] && [ $i = 24]; then
return 500
fi
sleep 1
done

echo "Create output file"
Expand All @@ -62,4 +62,3 @@ zcat ${DB}/hg19/refGene.txt.zip | awk '$9 > 50{print $13}' >> ${OUT}${OUTPUT}

echo "Done"
echo "===="

0 comments on commit ff0eb9c

Please sign in to comment.