Skip to content

Commit

Permalink
CRAYSAT-1706: To stop waiting if BOS session is deleted
Browse files Browse the repository at this point in the history
IM:CRAYSAT-1706
Reviewer:Ryan
  • Loading branch information
annapoorna-s-alt committed Aug 12, 2024
1 parent 7088e90 commit b924862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sat/cli/bootsys/bos.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from sat.config import get_config_value
from sat.session import SATSession
from sat.util import pester, prompt_continue
from sat.waiting import Waiter
from sat.waiting import Waiter, WaitingFailure
from sat.xname import XName

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -277,7 +277,7 @@ def has_completed(self):
return False

except APIError as err:
LOGGER.warning('Failed to query session status: %s', err)
raise WaitingFailure('Failed to query session status: %s', err)
except KeyError as err:
LOGGER.warning('BOS session status query response missing key %s', err)

Expand Down

0 comments on commit b924862

Please sign in to comment.