Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
cccd6e8f
Commit
cccd6e8f
authored
4 years ago
by
Matthew Piatetsky
Browse files
Options
Downloads
Patches
Plain Diff
Call celery task directly from management command instead of calling the signal
AA-461
parent
6a868108
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/djangoapps/export_course_metadata/management/commands/export_course_metadata_for_all_courses.py
+2
-2
2 additions, 2 deletions
...gement/commands/export_course_metadata_for_all_courses.py
with
2 additions
and
2 deletions
cms/djangoapps/export_course_metadata/management/commands/export_course_metadata_for_all_courses.py
+
2
−
2
View file @
cccd6e8f
...
...
@@ -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
)
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment