Commit ebc9c75e by Clinton Blackburn

Explicitly naming task

This should prevent errors due to relative imports. See http://docs.celeryproject.org/en/latest/userguide/tasks.html#automatic-naming-and-relative-imports for additional information.
parent ff72eada
...@@ -63,7 +63,7 @@ def listen_for_course_publish(sender, course_key, **kwargs): ...@@ -63,7 +63,7 @@ def listen_for_course_publish(sender, course_key, **kwargs):
update_course_structure.delay(unicode(course_key), countdown=0) update_course_structure.delay(unicode(course_key), countdown=0)
@task() @task(name=u'openedx.core.djangoapps.content.course_structures.models.update_course_structure')
def update_course_structure(course_key): def update_course_structure(course_key):
""" """
Regenerates and updates the course structure (in the database) for the specified course. Regenerates and updates the course structure (in the database) for the specified course.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment