Skip to content
Snippets Groups Projects
Commit 7ecdb6b2 authored by Charlotte Hausman's avatar Charlotte Hausman Committed by Nathan Hertz
Browse files

updating ingestion launch script for image ingestion

parent 41eca50e
No related branches found
No related tags found
1 merge request!385updating ingestion launch script for image ingestion
Pipeline #2374 passed
......@@ -3,13 +3,14 @@
set -o errexit -o nounset
function usage {
echo "Usage: ingest-request [-c] [workflow_request_id]
echo "Usage: ingest-request [-c, -i] [workflow_request_id]
This script sets off a Workspaces ingestion workflow of the specified type,
given by the chosen option, for the provided workflow request id.
Options:
-c, --calibration run the ingest_cal workflow for the specified request
-i, --image run the ingest_image workflow for the specified request
-h, --help display this help and exit
"
}
......@@ -19,6 +20,9 @@ case $option in
--calibration|-c)
action="ingest_cal"
;;
--image|-i)
action="ingest_image"
;;
--help|-h)
usage
;;
......@@ -29,3 +33,6 @@ WORKFLOW_SERVICE=$(capo -q edu.nrao.workspaces.WorkflowSettings.serviceUrl)
if [ "$action" = "ingest_cal" ]; then
curl -X POST $WORKFLOW_SERVICE/workflows/std_calibration/requests/$2/ingest
fi
if [ "$action" = "ingest_image" ]; then
curl -X POST $WORKFLOW_SERVICE/workflows/std_cms_image/requests/$2/ingest
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment