Skip to content
Snippets Groups Projects
Commit cccd6e8f authored by Matthew Piatetsky's avatar Matthew Piatetsky
Browse files

Call celery task directly from management command instead of calling the signal

AA-461
parent 6a868108
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ from django.core.management.base import BaseCommand
from xmodule.modulestore.django import modulestore
from cms.djangoapps.export_course_metadata.signals import export_course_metadata
from cms.djangoapps.export_course_metadata.tasks import export_course_metadata_task
class Command(BaseCommand):
......@@ -28,6 +29,5 @@ def export_course_metadata_for_all_courses():
"""
module_store = modulestore()
courses = module_store.get_courses()
for course in courses:
export_course_metadata(None, course.id)
export_course_metadata_task.delay(str(course.id))
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