mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 06:38:11 +08:00
Adds max_rss memory limit for recycle
This commit is contained in:
@@ -104,6 +104,9 @@ class Conf:
|
||||
# Number of tasks each worker can handle before it gets recycled. Useful for releasing memory
|
||||
RECYCLE = conf.get("recycle", 500)
|
||||
|
||||
# The maximum resident set size in kilobytes before a worker will recycle. Useful for limiting memory usage.
|
||||
MAX_RSS = conf.get("max_rss", None)
|
||||
|
||||
# Number of seconds to wait for a worker to finish.
|
||||
TIMEOUT = conf.get("timeout", None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user