Skip to content

Commit

Permalink
Add ECS service and implement rfs start/stop
Browse files Browse the repository at this point in the history
Signed-off-by: Mikayla Thompson <[email protected]>

Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
mikaylathompson authored and AndreKurait committed Jun 20, 2024
1 parent 9b57ddd commit 7ca269f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def scale(backfill: Backfill, units: int, *args, **kwargs) -> Tuple[ExitCode, st
def status(backfill: Backfill, *args, **kwargs) -> Tuple[ExitCode, str]:
logger.info("Getting backfill status")
try:
result = backfill.get_status(*args, **kwargs)
status = backfill.get_status(*args, **kwargs)
except NotImplementedError:
logger.error(f"Status is not implemented for backfill {type(backfill).__name__}")
return ExitCode.FAILURE, f"Status is not implemented for backfill: {type(backfill).__name__}"
except Exception as e:
logger.error(f"Failed to get status of backfill: {e}")
return ExitCode.FAILURE, f"Failure when getting status of backfill: {type(e).__name__} {e}"
if result.success:
return ExitCode.SUCCESS, result.value
return ExitCode.FAILURE, "Backfill status retrieval failed." + "\n" + result
if status:
return ExitCode.SUCCESS, status.value
return ExitCode.FAILURE, "Backfill status retrieval failed." + "\n" + status

0 comments on commit 7ca269f

Please sign in to comment.