Skip to content

Commit

Permalink
Move the minio artifact download under try block (#3889)
Browse files Browse the repository at this point in the history
If minio artifact download fails the workteam is not being deleted.
  • Loading branch information
goswamig committed Jun 2, 2020
1 parent 58f1d13 commit a7be049
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ def test_workteamjob(
)

outputs = {"sagemaker-private-workforce": ["workteam_arn"]}
output_files = minio_utils.artifact_download_iterator(
workflow_json, outputs, download_dir
)

try:
try:
output_files = minio_utils.artifact_download_iterator(
workflow_json, outputs, download_dir
)

response = sagemaker_utils.describe_workteam(sagemaker_client, workteam_name)

# Verify WorkTeam was created in SageMaker
Expand Down

0 comments on commit a7be049

Please sign in to comment.