Commit 3beb0268 authored by Jasper Koehorst's avatar Jasper Koehorst
Browse files

ensure root /scripts to be used

parent 83284963
......@@ -44,9 +44,9 @@ mkdir -p $yaml_dir
rm $yaml
# Updating metadata by removing all cwl and cwl path status
python3 scripts/metadata.py -key cwl -value $cwl -remove -file $yaml
python3 /scripts/metadata.py -key cwl -value $cwl -remove -file $yaml
# Adding the running status
python3 scripts/metadata.py -key cwl -value $cwl -unit running -add -file $yaml
python3 /scripts/metadata.py -key cwl -value $cwl -unit running -add -file $yaml
# Download latest yaml file
java -jar /unlock/infrastructure/binaries/irods/IRODSTransfer.jar -pull --files $yaml --local $yaml_dir --force
......@@ -83,8 +83,8 @@ if [ $exit_status -eq 0 ]; then
java -jar /unlock/infrastructure/binaries/irods/IRODSTransfer.jar --push --files $destination_path --irods $destination_path
# Update metadata field
python3 scripts/metadata.py -key cwl -value $cwl -remove -file $yaml
python3 scripts/metadata.py -key cwl -value $cwl -unit finished -add -file $yaml
python3 /scripts/metadata.py -key cwl -value $cwl -remove -file $yaml
python3 /scripts/metadata.py -key cwl -value $cwl -unit finished -add -file $yaml
# Remove local destination results
rm -rf $destination_path
......@@ -92,8 +92,8 @@ if [ $exit_status -eq 0 ]; then
else
# When CWL execution fails update metadata
echo "CWL execution failed..."
python3 scripts/metadata.py -key cwl -value $cwl -remove -file $yaml
python3 scripts/metadata.py -key cwl -value $cwl -unit failed -add -file $yaml
python3 /scripts/metadata.py -key cwl -value $cwl -remove -file $yaml
python3 /scripts/metadata.py -key cwl -value $cwl -unit failed -add -file $yaml
exit 1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment