Skip to content
Snippets Groups Projects
Commit 6caca6d6 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Merge branch 'bugfix/task-typo' into 'master'

Fix typo in django-q tasks

See merge request !237
parents 8890826f d648d91c
No related branches found
No related tags found
1 merge request!237Fix typo in django-q tasks
Pipeline #109296 passed
......@@ -17,7 +17,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
logger.info("Scheduling orgreg import task...")
schedule(
func="tasks.import_from_orgreg",
func="greg.tasks.import_from_orgreg",
schedule_type=settings.ORGREG_SCHEDULE_TYPE,
)
logger.info("Orgreg import task scheduled.")
......@@ -25,7 +25,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
logger.info("Scheduling role end notifier task...")
schedule(
func="tasks.notify_sponsors_roles_ending",
func="greg.tasks.notify_sponsors_roles_ending",
schedule_type=settings.NOTIFIER_SCHEDULE_TYPE,
)
logger.info("Role end notifier task scheduled.")
......@@ -10,4 +10,4 @@ def test_command_ou_init():
call_command("import_from_orgreg")
assert Schedule.objects.all().count() == 1
sc = Schedule.objects.first()
assert sc.func == "tasks.import_from_orgreg"
assert sc.func == "greg.tasks.import_from_orgreg"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment