gbdx_cloud_harness/workflow.py
def monitor_run(self):  # pragma: no cover
        """
        Monitor the workflows events and display spinner while running.
        :param workflow: the workflow object
        """

        spinner = itertools.cycle(['-', '/', '|', '\\'])

        while not self.complete:
            for i in xrange(300):
                sys.stdout.write(spinner.next())
                sys.stdout.flush()
                sys.stdout.write('\b')
                time.sleep(0.03)

        if self.succeeded:
            sys.stdout.write("\nWorkflow completed successfully\n")
            return True
        else:
            sys.stdout.write("\nWorkflow failed: %s\n" % self.status)
            return False
def monitor_run(self):  # pragma: no cover
        """
        Monitor the workflows events and display spinner while running.
        :param workflow: the workflow object
        """

        spinner = itertools.cycle(['-', '/', '|', '\\'])

        while not self.complete:
            for i in xrange(300):
                sys.stdout.write(spinner.next())
                sys.stdout.flush()
                sys.stdout.write('\b')
                time.sleep(0.03)

        if self.succeeded:
            sys.stdout.write("\nWorkflow completed successfully\n")
            return True
        else:
            sys.stdout.write("\nWorkflow failed: %s\n" % self.status)
            return False
def monitor_run ( self ) : # pragma: no cover spinner = itertools . cycle ( [ '-' , '/' , '|' , '\\' ] ) while not self . complete : for i in xrange ( 300 ) : sys . stdout . write ( spinner . next ( ) ) sys . stdout . flush ( ) sys . stdout . write ( '\b' ) time . sleep ( 0.03 ) if self . succeeded : sys . stdout . write ( "\nWorkflow completed successfully\n" ) return True else : sys . stdout . write ( "\nWorkflow failed: %s\n" % self . status ) return False
Monitor the workflows events and display spinner while running.
        :param workflow: the workflow object
Monitor the workflows events and display spinner while running . : param workflow : the workflow object