You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the code waits for 60 seconds (defined in ENV Variable). This appears to be random and not necessarily best use of the time/resource. Determine a way to shorten the wait period while confirming certain resources are available.
` # Only doing something if the state is running
if state == 'running':
LOGGER.debug("sleeping for {} seconds {}".format(SLEEPTIME, lineno()))
if "pytest" in sys.modules:
# called from within a test run
time.sleep(1)
else:
# called "normally"
time.sleep(SLEEPTIME)`
The approach will be the reduce the time of wait but perform some DESCRIBE EC2 API calls and validate that the information is there and loop wait if needed until the max time (60).
The text was updated successfully, but these errors were encountered:
Currently the code waits for 60 seconds (defined in ENV Variable). This appears to be random and not necessarily best use of the time/resource. Determine a way to shorten the wait period while confirming certain resources are available.
` # Only doing something if the state is running
if state == 'running':
LOGGER.debug("sleeping for {} seconds {}".format(SLEEPTIME, lineno()))
The approach will be the reduce the time of wait but perform some DESCRIBE EC2 API calls and validate that the information is there and loop wait if needed until the max time (60).
The text was updated successfully, but these errors were encountered: