akvo.rsr.management.commands.sync_django_q_schedules module

Synchronizes the django-q schedules from the settings with those in the DB

New ones will be added to the DB Modified ones will be modified in the DB Schedules in the DB but missing in the settings will be removed from the DB

Usage:

python manage.py sync_django_q_schedules

class akvo.rsr.management.commands.sync_django_q_schedules.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

handle(*args, **options)[source]

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

help = 'Synchronizes the django-q schedules from the settings with those in the DB\n\nNew ones will be added to the DB\nModified ones will be modified in the DB\nSchedules in the DB but missing in the settings will be removed from the DB\n\nUsage:\n\n    python manage.py sync_django_q_schedules\n\n'