Skip to content

Commit be596f9

Browse files
committed
Fix lint issues and attempt to solve e2e race condition
1 parent ad2ff7a commit be596f9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

  • python/packages
    • jumpstarter-cli/jumpstarter_cli
    • jumpstarter/jumpstarter/client

python/packages/jumpstarter-cli/jumpstarter_cli/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from jumpstarter.common import HOOK_WARNING_PREFIX, ExporterStatus
2222
from jumpstarter.common.exceptions import ConnectionError, ExporterOfflineError
2323
from jumpstarter.common.utils import launch_shell
24-
from jumpstarter.config.client import ClientConfigV1Alpha1, raise_expired_token_error
24+
from jumpstarter.config.client import ClientConfigV1Alpha1
2525
from jumpstarter.config.exporter import ExporterConfigV1Alpha1
2626

2727
logger = logging.getLogger(__name__)

python/packages/jumpstarter/jumpstarter/client/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ async def log_stream(): # noqa: C901
520520
# Stream was cancelled, likely shutting down
521521
self.logger.debug("Log stream cancelled")
522522
break
523+
elif e.code() == StatusCode.UNIMPLEMENTED:
524+
# Old exporters don't support LogStream — stop retrying permanently
525+
self.logger.debug("Log stream not implemented (old exporter), skipping")
526+
break
523527
else:
524528
self.logger.debug("Log stream error: %s", e.code())
525529

0 commit comments

Comments
 (0)