Skip to content

Rundispatcher

snoop.data.management.commands.rundispatcher #

Runs the dispatcher.

Classes#

Command #

Runs one iteration of the dispatcher.

This keeps collections up to date by scanning the filesystem and launching processing jobs as required.

Calls snoop.data.tasks.run_dispatcher.

Methods#
handle(self, *args, **options) #

The actual logic of the command. Subclasses must implement this method.

Source code in snoop/data/management/commands/rundispatcher.py
def handle(self, *args, **options):
    logging_for_management_command()
    run_dispatcher()