Skip to content

Commit

Permalink
fix: order of operations for creating results
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalshaikh42 committed May 14, 2021
1 parent c16649c commit eac31e0
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -64,13 +64,12 @@ echo -e '${cyan}=============Downloading Combine Archive=============${nc}'
( ulimit -f 1048576; srun wget --progress=bar:force ${apiDomain}run/${simId}/download -O '${omexName}')
echo -e '${cyan}=============Running docker image for simulator=============${nc}'
srun singularity run -B ${tempSimDir}:/root ${simulator} -i '/root/${omexName}' -o '/root'
echo -e '${cyan}=============Uploading results to data-service=============${nc}
srun hsload -v reports.h5 '/results/${simId}'
echo -e '${cyan}=============Creating output archive=============${nc}'
srun zip ${simId}.zip reports.h5 log.yml plots.zip job.output
echo -e '${cyan}=============Uploading outputs to storage=============${nc}'
export PYTHONWARNINGS="ignore"; srun aws --no-verify-ssl --endpoint-url ${endpoint} s3 sync --exclude "*.sbatch" --exclude "*.omex" . s3://${bucket}/simulations/${simId}
echo -e '${cyan}=============Uploading results to data-service=============${nc}'
srun hsload -v reports.h5 '/results/${simId}'
echo -e '${cyan}=============Run Complete. Thank you for using BioSimulations!=============${nc}'
echo -e '${cyan}=============Run Complete. Thank you for using BioSimulations!=============${nc}
export PYTHONWARNINGS = "ignore"; srun aws --no-verify-ssl--endpoint - url ${endpoint} s3 --acl public-read sync--exclude "*.sbatch" --exclude "*.omex".s3://${bucket}/simulations/${simId}'
`;

return template;
Expand Down

0 comments on commit eac31e0

Please sign in to comment.