Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
20447bd8
Commit
20447bd8
authored
Apr 26, 2017
by
Cliff Dyer
Committed by
GitHub
Apr 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14965 from edx/neem/routing-key
Fix calling convention for celery options
parents
2b4817b1
8e409800
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
lms/djangoapps/grades/management/commands/compute_grades.py
+1
-4
lms/djangoapps/grades/management/commands/tests/test_compute_grades.py
+4
-4
No files found.
lms/djangoapps/grades/management/commands/compute_grades.py
View file @
20447bd8
...
@@ -106,10 +106,7 @@ class Command(BaseCommand):
...
@@ -106,10 +106,7 @@ class Command(BaseCommand):
'batch_size'
:
batch_size
,
'batch_size'
:
batch_size
,
'estimate_first_attempted'
:
options
[
'estimate_first_attempted'
]
'estimate_first_attempted'
:
options
[
'estimate_first_attempted'
]
}
}
result
=
tasks
.
compute_grades_for_course_v2
.
apply_async
(
result
=
tasks
.
compute_grades_for_course_v2
.
apply_async
(
kwargs
=
kwargs
,
**
task_options
)
kwargs
=
kwargs
,
options
=
task_options
,
)
log
.
info
(
"Grades: Created {task_name}[{task_id}] with arguments {kwargs}"
.
format
(
log
.
info
(
"Grades: Created {task_name}[{task_id}] with arguments {kwargs}"
.
format
(
task_name
=
tasks
.
compute_grades_for_course
.
name
,
task_name
=
tasks
.
compute_grades_for_course
.
name
,
task_id
=
result
.
task_id
,
task_id
=
result
.
task_id
,
...
...
lms/djangoapps/grades/management/commands/tests/test_compute_grades.py
View file @
20447bd8
...
@@ -101,19 +101,19 @@ class TestComputeGrades(SharedModuleStoreTestCase):
...
@@ -101,19 +101,19 @@ class TestComputeGrades(SharedModuleStoreTestCase):
mock_task
.
apply_async
.
call_args_list
,
mock_task
.
apply_async
.
call_args_list
,
[
[
({
({
'
options'
:
{
'routing_key'
:
'key'
}
,
'
routing_key'
:
'key'
,
'kwargs'
:
_kwargs
(
self
.
course_keys
[
0
],
0
)
'kwargs'
:
_kwargs
(
self
.
course_keys
[
0
],
0
)
},),
},),
({
({
'
options'
:
{
'routing_key'
:
'key'
}
,
'
routing_key'
:
'key'
,
'kwargs'
:
_kwargs
(
self
.
course_keys
[
0
],
2
)
'kwargs'
:
_kwargs
(
self
.
course_keys
[
0
],
2
)
},),
},),
({
({
'
options'
:
{
'routing_key'
:
'key'
}
,
'
routing_key'
:
'key'
,
'kwargs'
:
_kwargs
(
self
.
course_keys
[
3
],
0
)
'kwargs'
:
_kwargs
(
self
.
course_keys
[
3
],
0
)
},),
},),
({
({
'
options'
:
{
'routing_key'
:
'key'
}
,
'
routing_key'
:
'key'
,
'kwargs'
:
_kwargs
(
self
.
course_keys
[
3
],
2
)
'kwargs'
:
_kwargs
(
self
.
course_keys
[
3
],
2
)
},),
},),
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment