-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-job.sh
executable file
·32 lines (21 loc) · 730 Bytes
/
run-job.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
#!/usr/bin/env bash
# the -e flag tells the script to exit if any of its commands exit with a non zero code.
# For instance, if any of the subscripts exit with a 1 (like if we fail to export a job)
# we should exit this script automatically.
set -e
source bootstrap.sh "$@"
if [ "$BEARER_TOKEN" == "null" ]
then
printf "Failed to retrieve bearer token is base64 token accurate?\nIs %s available from this computer?\n", $IDP_URL
exit 1
fi
echo "Using okta url: $IDP_URL"
echo "Connecting to AB2D API at: $API_URL"
echo "Saving data to: $DIRECTORY"
echo "FHIR Version: $FHIR_VERSION"
echo "Starting job"
./start-job.sh
echo "Monitoring job"
./monitor-job.sh
echo "Download results for job"
./download-results.sh