Skip to content
Snippets Groups Projects
Commit a93462f9 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Revert fail execution run

parent 18900014
2 merge requests!58Develop,!57Prep of 1.0.0 release
...@@ -2293,37 +2293,43 @@ process failExecutionRun { ...@@ -2293,37 +2293,43 @@ process failExecutionRun {
cookie=\${cookie:11:-1} cookie=\${cookie:11:-1}
errorDetails="" errorDetails=""
pipelineError_details=\$(echo "**Submitted metadata does not match inferred:**\\n") if [ ${pipelineError} == false ]
pipelineError_details=\$(echo \${pipelineError_details}"|Metadata|Submitted value|Inferred value|\\n")
pipelineError_details=\$(echo \${pipelineError_details}"|:-:|-:|-:|\\n")
if ${pipelineError_ends}
then then
if [ "${endsInfer}" == "se" ] rid=\$(python3 ${script_uploadExecutionRun_failExecutionRun} -r ${repRID} -w \${workflow} -g \${genome} -i ${inputBagRID} -s Success -d 'Run Successful' -o ${source} -c \${cookie} -u ${executionRunRID})
echo LOG: execution run RID marked as successful - \${rid} >> ${repRID}.failExecutionRun.log
else
pipelineError_details=\$(echo "**Submitted metadata does not match inferred:**\\n")
pipelineError_details=\$(echo \${pipelineError_details}"|Metadata|Submitted value|Inferred value|\\n")
pipelineError_details=\$(echo \${pipelineError_details}"|:-:|-:|-:|\\n")
if ${pipelineError_ends}
then then
endInfer="Single End" if [ "${endsInfer}" == "se" ]
elif [ "${endsInfer}" == "pe" ] then
endInfer="Single End"
elif [ "${endsInfer}" == "pe" ]
then
endInfer="Paired End"
else
endInfer="unknown"
fi
pipelineError_details=\$(echo \${pipelineError_details}"|Paired End|${endsRaw}|"\${endInfer}"|\\n")
fi
if ${pipelineError_stranded}
then then
endInfer="Paired End" pipelineError_details=\$(echo \${pipelineError_details}"|Strandedness|${strandedMeta}|${strandedInfer}|\\n")
else
endInfer="unknown"
fi fi
pipelineError_details=\$(echo \${pipelineError_details}"|Paired End|${endsRaw}|"\${endInfer}"|\\n") if ${pipelineError_spike}
fi then
if ${pipelineError_stranded} pipelineError_details=\$(echo \${pipelineError_details}"|Used Spike Ins|${spikeMeta}|${spikeInfer}|\\n")
then fi
pipelineError_details=\$(echo \${pipelineError_details}"|Strandedness|${strandedMeta}|${strandedInfer}|\\n") if ${pipelineError_species}
fi then
if ${pipelineError_spike} pipelineError_details=\$(echo \${pipelineError_details}"|Species|${speciesMeta}|${speciesInfer}|\\n")
then fi
pipelineError_details=\$(echo \${pipelineError_details}"|Used Spike Ins|${spikeMeta}|${spikeInfer}|\\n") pipelineError_details=\${pipelineError_details::-2}
fi rid=\$(python3 ${script_uploadExecutionRun_failExecutionRun} -r ${repRID} -w \${workflow} -g \${genome} -i ${inputBagRID} -s Error -d "\${pipelineError_details}" -o ${source} -c \${cookie} -u ${executionRunRID})
if ${pipelineError_species} echo LOG: execution run RID marked as error - \${rid} >> ${repRID}.failExecutionRun.log
then
pipelineError_details=\$(echo \${pipelineError_details}"|Species|${speciesMeta}|${speciesInfer}|\\n")
fi fi
pipelineError_details=\${pipelineError_details::-2}
rid=\$(python3 ${script_uploadExecutionRun_failExecutionRun} -r ${repRID} -w \${workflow} -g \${genome} -i ${inputBagRID} -s Error -d "\${pipelineError_details}" -o ${source} -c \${cookie} -u ${executionRunRID})
echo LOG: execution run RID marked as error - \${rid} >> ${repRID}.failExecutionRun.log
dt=`date --utc +%FT%TZ` dt=`date --utc +%FT%TZ`
curl -H 'Content-Type: application/json' -X PUT -d \ curl -H 'Content-Type: application/json' -X PUT -d \
......
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