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

Fix typo in django-q tasks

parent cf236e5b
No related branches found
No related tags found
1 merge request!237Fix typo in django-q tasks
Pipeline #109292 passed
...@@ -17,7 +17,7 @@ class Command(BaseCommand): ...@@ -17,7 +17,7 @@ class Command(BaseCommand):
def handle(self, *args, **options): def handle(self, *args, **options):
logger.info("Scheduling orgreg import task...") logger.info("Scheduling orgreg import task...")
schedule( schedule(
func="tasks.import_from_orgreg", func="greg.tasks.import_from_orgreg",
schedule_type=settings.ORGREG_SCHEDULE_TYPE, schedule_type=settings.ORGREG_SCHEDULE_TYPE,
) )
logger.info("Orgreg import task scheduled.") logger.info("Orgreg import task scheduled.")
...@@ -25,7 +25,7 @@ class Command(BaseCommand): ...@@ -25,7 +25,7 @@ class Command(BaseCommand):
def handle(self, *args, **options): def handle(self, *args, **options):
logger.info("Scheduling role end notifier task...") logger.info("Scheduling role end notifier task...")
schedule( schedule(
func="tasks.notify_sponsors_roles_ending", func="greg.tasks.notify_sponsors_roles_ending",
schedule_type=settings.NOTIFIER_SCHEDULE_TYPE, schedule_type=settings.NOTIFIER_SCHEDULE_TYPE,
) )
logger.info("Role end notifier task scheduled.") logger.info("Role end notifier task scheduled.")
...@@ -10,4 +10,4 @@ def test_command_ou_init(): ...@@ -10,4 +10,4 @@ def test_command_ou_init():
call_command("import_from_orgreg") call_command("import_from_orgreg")
assert Schedule.objects.all().count() == 1 assert Schedule.objects.all().count() == 1
sc = Schedule.objects.first() 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