Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable paging for long running command #103

Merged
merged 1 commit into from
Aug 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/aaz_dev/cli/controller/az_command_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
from .az_arg_group_generator import AzArgGroupGenerator, AzArgClsGenerator
from .az_output_generator import AzOutputGenerator
from utils import exceptions
import logging


logger = logging.getLogger('backend')


class AzCommandCtx:
Expand Down Expand Up @@ -196,6 +200,10 @@ def __init__(self, cmd: CLIAtomicCommand, is_wait=False):
self.outputs.append(output_generator)
if output_generator.next_link:
self.paging = True
if self.lro_counts > 0 and self.paging:
self.paging = False
# TODO: support paging for long running command later
logger.warning(f"Disable paging for long running command: '{self.name}'")

if len(self.outputs) > 1:
# TODO: add support for output larger than 1
Expand Down