How to use the memorious.core.manager.run_scheduled function in memorious

To help you get started, we’ve selected a few memorious examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alephdata / memorious / memorious / cli.py View on Github external
def scheduled(wait=False):
    """Run crawlers that are due."""
    manager.run_scheduled()
    while wait:
        # Loop and try to run scheduled crawlers at short intervals
        manager.run_scheduled()
        time.sleep(settings.SCHEDULER_INTERVAL)
github alephdata / memorious / memorious / worker.py View on Github external
def periodic(self):
        if self.scheduler.check() and not settings.DEBUG:
            log.info("Running scheduled crawlers ...")
            self.scheduler.update()
            manager.run_scheduled()
github alephdata / memorious / memorious / tasks.py View on Github external
def process_schedule():
    manager.run_scheduled()