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 55bf1c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.30.1] - 2024-08-12

### Fixed
- Stop waiting till `sat bootsys` execution, if BOS session has deleted in
`bos-operations` stage.

## [3.30.0] - 2024-08-09

### Changed
Expand Down
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 55bf1c1

Please sign in to comment.