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
62bc32d4
Commit
62bc32d4
authored
Sep 25, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use HIGH_PRIORITY_QUEUE for send_course_email.
parent
42033ca8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
lms/djangoapps/bulk_email/tasks.py
+7
-6
No files found.
lms/djangoapps/bulk_email/tasks.py
View file @
62bc32d4
...
...
@@ -162,7 +162,10 @@ def perform_delegate_email_batches(entry_id, course_id, task_input, action_name)
email_id
,
to_list
,
global_email_context
,
),
task_id
=
subtask_id
),
task_id
=
subtask_id
,
routing_key
=
settings
.
HIGH_PRIORITY_QUEUE
,
queue
=
settings
.
HIGH_PRIORITY_QUEUE
,
))
num_workers
+=
num_tasks_this_query
...
...
@@ -174,7 +177,7 @@ def perform_delegate_email_batches(entry_id, course_id, task_input, action_name)
# now group the subtasks, and start them running:
task_group
=
group
(
task_list
)
task_group
.
apply_async
()
task_group
.
apply_async
(
routing_key
=
settings
.
HIGH_PRIORITY_QUEUE
,
queue
=
settings
.
HIGH_PRIORITY_QUEUE
)
# We want to return progress here, as this is what will be stored in the
# AsyncResult for the parent task as its return value.
...
...
@@ -217,10 +220,8 @@ def send_course_email(entry_id, email_id, to_list, global_email_context):
# Get information from current task's request:
current_task_id
=
_get_current_task
()
.
request
.
id
retry_index
=
_get_current_task
()
.
request
.
retries
log
.
info
(
"Preparing to send email as subtask
%
s for instructor task
%
d, retry
%
d"
,
current_task_id
,
entry_id
,
retry_index
)
log
.
info
(
"Preparing to send email as subtask
%
s for instructor task
%
d: request =
%
s"
,
current_task_id
,
entry_id
,
_get_current_task
()
.
request
)
send_exception
=
None
course_email_result_value
=
None
...
...
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