Skip to content

Commit

Permalink
Reduced time sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Otoupal committed Nov 28, 2023
1 parent 56db344 commit 0ca2385
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abst/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"CLI Command making OCI Bastion and kubernetes usage simple and fast"
)

__version__ = "2.3.13"
__version__ = "2.3.14"
__author__ = "Jiri Otoupal"
__author_email__ = "jiri-otoupal@ips-database.eu"
__license__ = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions abst/bastion_support/bastion_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __display_loop(cls):
while True:
clear()
cls.__display(console)
sleep(3)
sleep(1.5)

@classmethod
def _run_indefinitely(cls, func, force: bool = False):
Expand All @@ -109,7 +109,7 @@ def _run_indefinitely(cls, func, force: bool = False):
try:
func(force=force)
finally:
sleep(1)
sleep(0.3)

@classmethod
@load_stack_decorator
Expand Down
2 changes: 1 addition & 1 deletion abst/bastion_support/oci_bastion.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def run_ssh_tunnel_port_forward(self, bid, host, ip, port, shell, local_port,
def wait_for_prepared(self):
print(f"Waiting for Bastion {self.get_print_name()} to initialize")
while self.get_bastion_state()["lifecycle_state"] != "ACTIVE":
sleep(1)
sleep(0.5)

@classmethod
def parse_response(cls, res):
Expand Down

0 comments on commit 0ca2385

Please sign in to comment.