Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Apr 3, 2024
1 parent ebfd136 commit f8a8d7d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sky/serve/replica_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,13 @@ def unrecoverable_failure(self) -> bool:
failure, e.g., the user app fails before the service endpoint being
ready for the current version.
"""
replica_status = self.to_replica_status()
logger.info(
f'Check replica unrecorverable: {self.first_ready_time}, {self.user_app_failed}'
'Check replica unrecorverable: first_ready_time '
f'{self.first_ready_time}, user_app_failed {self.user_app_failed}, '
f'status {replica_status}'
)
if (self.to_replica_status()
not in serve_state.ReplicaStatus.failed_statuses()):
if replica_status not in serve_state.ReplicaStatus.terminal_statuses():
return False
if self.first_ready_time is not None:
if self.first_ready_time >= 0:
Expand Down

0 comments on commit f8a8d7d

Please sign in to comment.