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
b5c4bb07
Commit
b5c4bb07
authored
Mar 22, 2018
by
Alex Dusenbery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EDUCATOR-2359 | Add celery config to restart worker after 100 tasks.
parent
d9362ee2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
notifier/settings.py
+5
-2
No files found.
notifier/settings.py
View file @
b5c4bb07
...
@@ -192,6 +192,10 @@ BROKER_HEARTBEAT_CHECKRATE = 2
...
@@ -192,6 +192,10 @@ BROKER_HEARTBEAT_CHECKRATE = 2
# Each worker should only fetch one message at a time
# Each worker should only fetch one message at a time
CELERYD_PREFETCH_MULTIPLIER
=
1
CELERYD_PREFETCH_MULTIPLIER
=
1
# Maximum number of tasks a pool worker process can execute
# before it's replaced with a new one.
CELERYD_MAX_TASKS_PER_CHILD
=
100
LANGUAGE_CODE
=
os
.
getenv
(
'NOTIFIER_LANGUAGE'
,
'en'
)
LANGUAGE_CODE
=
os
.
getenv
(
'NOTIFIER_LANGUAGE'
,
'en'
)
LANGUAGES
=
(
LANGUAGES
=
(
(
"en"
,
"English"
),
(
"en"
,
"English"
),
...
@@ -212,4 +216,4 @@ LOGO_IMAGE_URL = os.getenv('LOGO_IMAGE_URL', "{}/static/images/edx-theme/edx-log
...
@@ -212,4 +216,4 @@ LOGO_IMAGE_URL = os.getenv('LOGO_IMAGE_URL', "{}/static/images/edx-theme/edx-log
DEAD_MANS_SNITCH_URL
=
os
.
getenv
(
'DEAD_MANS_SNITCH_URL'
,
''
)
DEAD_MANS_SNITCH_URL
=
os
.
getenv
(
'DEAD_MANS_SNITCH_URL'
,
''
)
SECRET_KEY
=
os
.
getenv
(
'SECRET_KEY'
,
'secret_key'
)
SECRET_KEY
=
os
.
getenv
(
'SECRET_KEY'
,
'secret_key'
)
\ No newline at end of file
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