INNER CODE UNIT · Python

run

miztiik/AWS-Demos · how-to-examples/iam-s3-sqs-sns-video-transcoder.py:464

    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)))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…