Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
notifier
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
notifier
Commits
38ae08ff
Commit
38ae08ff
authored
Oct 23, 2014
by
Jim Abramson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28 from edx/jsa/config-task-rate-limit
make task rate configurable from env
parents
ba5b8a4c
abfb9dcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
notifier/settings.py
+2
-2
No files found.
notifier/settings.py
View file @
38ae08ff
...
@@ -86,8 +86,8 @@ import djcelery
...
@@ -86,8 +86,8 @@ import djcelery
djcelery
.
setup_loader
()
djcelery
.
setup_loader
()
BROKER_URL
=
os
.
getenv
(
'BROKER_URL'
,
'django://'
)
BROKER_URL
=
os
.
getenv
(
'BROKER_URL'
,
'django://'
)
# limit the frequency
with which the forum digest task may
run.
# limit the frequency
at which the forum digest celery task may be
run.
FORUM_DIGEST_TASK_RATE_LIMIT
=
"6/m"
# no more than every 10 seconds
FORUM_DIGEST_TASK_RATE_LIMIT
=
os
.
getenv
(
'FORUM_DIGEST_TASK_RATE_LIMIT'
,
'6/m'
)
# limit the size of user batches (cs service pulls / emails sent) per-task
# limit the size of user batches (cs service pulls / emails sent) per-task
FORUM_DIGEST_TASK_BATCH_SIZE
=
int
(
os
.
getenv
(
'FORUM_DIGEST_TASK_BATCH_SIZE'
,
5
))
FORUM_DIGEST_TASK_BATCH_SIZE
=
int
(
os
.
getenv
(
'FORUM_DIGEST_TASK_BATCH_SIZE'
,
5
))
# limit the number of times an individual task will be retried
# limit the number of times an individual task will be retried
...
...
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