Skip to content

Commit

Permalink
Handle unknown status
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed Dec 21, 2023
1 parent 445daee commit 94392c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
status_codes = {
"SUCCEEDED": "S",
"ACTIVE": "P",
"FAILED": "F"
"FAILED": "F",
"UNKNOWN": "U"
}

def format_status_record(status:dict, automate_manager:AutomateManager) -> dict:
Expand All @@ -22,7 +23,7 @@ def format_status_record(status:dict, automate_manager:AutomateManager) -> dict:
status["submission_time"])

automate_status = {
"status": "Unknown",
"status": "UNKNOWN",
"details": {
"description": "Unknown"
}
Expand Down

0 comments on commit 94392c9

Please sign in to comment.