#NEWLINE# @ vm_util . Retry ( poll_interval = 10 , max_retries = 600 , log_errors = False ) #NEWLINE# def _WaitForBootCompletion( self ) : #NEWLINE# #INDENT# '\n    Periodically asks Marathon if the instance is already running.\n    ' #NEWLINE# logging . info ( ( 'Waiting for App %s to get up and running. It may take a while if a Docker image is being downloaded for the first time.' % self . name ) ) #NEWLINE# output = requests . get ( self . app_url ) #NEWLINE# output = json . loads ( output . text ) #NEWLINE# tasks_running = output [ 'app' ] [ 'tasksRunning' ] #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# raise Exception ( 'Container is not booted yet. Retrying.' )