Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ The index `IX_METADATA_ENTRY_WEU_CFQN_JSI_JRA_MK` is added to `METADATA_ENTRY`.

This index supports planned metadata API enhancements that enable querying at granular scopes, namely calls, shards, and attempts.

### AWS Batch
* Fixed an issue where job failures before all outputs were written would cause delocalization to fail, preventing the upload of return code, stdout, and stderr files needed for debugging.

## 91 Release Notes

#### Removal of Google LifeSciences backend code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ final case class AwsBatchJob(
replaced.patch(insertionPoint, preamble, 0) +
s"""
|{
|set -e
|# (re-)add tags to include added volumes:
|if [[ "${doTagging}" == "true" ]]; then
| echo "*** TAGGING RESOURCES ***"
Expand All @@ -588,15 +587,20 @@ final case class AwsBatchJob(
|DELOCALIZATION_FAILED=0
|$outputCopyCommand
|echo "DELOCALIZATION RESULT: $$DELOCALIZATION_FAILED"
|rc=$$(head -n 1 $workDir/${jobPaths.returnCodeFilename} 2>/dev/null) || rc=1
|if [[ $$DELOCALIZATION_FAILED -eq 1 ]]; then
| echo '*** DELOCALIZATION FAILED ***'
| echo '*** EXITING WITH RETURN CODE 1***'
| exit 1
| if [[ "$$rc" -eq 0 ]]; then
| echo '*** EXITING WITH RETURN CODE 1 ***'
| exit 1
| else
| echo "*** EXITING WITH ORIGINAL RETURN CODE $$rc ***"
| exit $$rc
| fi
|else
| echo '*** COMPLETED DELOCALIZATION ***'
|fi
|echo '*** EXITING WITH RETURN CODE ***'
|rc=$$(head -n 1 $workDir/${jobPaths.returnCodeFilename})
|echo $$rc
|exit $$rc
|}
Expand Down