(self)
Start the main loop. This repeatedly checks for new files,
        uploads them and starts jobs if needed, and checks for and
        downloads completed files. It sleeps for ``poll_interval``
        seconds between checks.
Start the main loop. This repeatedly checks for new files,
        uploads them and starts jobs if needed, and checks for and
        downloads completed files. It sleeps for ``poll_interval``
        seconds between checks.
Start the main loop . This repeatedly checks for new files uploads them and starts jobs if needed and checks for and downloads completed files . It sleeps for poll_interval seconds between checks .
def run(self):
        """
        Start the main loop. This repeatedly checks for new files,
        uploads them and starts jobs if needed, and checks for and
        downloads completed files. It sleeps for ``poll_interval``
        seconds between checks.
        """
        # Make sure everything we need is setup, both locally & on AWS.
        self.ensure_local_setup()
        self.ensure_aws_setup()

        # Run forever, or until the user says stop.
        while True:
            print("Checking for new files.")
            files_found = self.check_unconverted()

            if files_found:
                print("Found {0} new file(s).".format(len(files_found)))
                self.start_converting(files_found)

            # Here we check the queue, which will long-poll
            # for up to ``self.poll_interval`` seconds.
            self.process_completed()
def run ( self ) : # Make sure everything we need is setup, both locally & on AWS. self . ensure_local_setup ( ) self . ensure_aws_setup ( ) # Run forever, or until the user says stop. while True : print ( "Checking for new files." ) files_found = self . check_unconverted ( ) if files_found : print ( "Found {0} new file(s)." . format ( len ( files_found ) ) ) self . start_converting ( files_found ) # Here we check the queue, which will long-poll # for up to ``self.poll_interval`` seconds. self . process_completed ( )