diff --git a/data/templates/callback.txt b/data/templates/callback.txt index c273beb6adc0433dbb4a220748f44fb3b5dcdf5a..495e880b4294eab7df9030994a9be0fc5c75f1b9 100644 --- a/data/templates/callback.txt +++ b/data/templates/callback.txt @@ -7,15 +7,19 @@ callback_exit_handler() \{ # report the status of the job to the INTERVENE backend exit_code=$? - # todo: don't change the url, change the message content if [ $exit_code -eq 0 ]; then - url="http://example.com/good/{name}" + body='\{"status": "COMPLETED", + "pipelineId": "{name}", + "outdir": ""}' else - url="http://example.com/bad/{name}" + body='\{"status": "FAILED", + "pipelineId": "{name}", + "outdir": ""}' fi # do a callback - curl -s "$url" + url="https://dev.intervenegeneticscores.org/pipeline-manager/pipeline/csc/notify" + curl -X POST -H "Authorization: Bearer $CALLBACK_TOKEN" -d $body $url exit $exit_code }