Skip to content

Commit

Permalink
Nice section now accepts mules.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Jul 10, 2017
1 parent 51e8c72 commit 6d27e38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion uwsgiconf/presets/nice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class Section(_Section):
"""Basic nice configuration."""

def __init__(self, name=None, touch_reload=None, workers=None, threads=None, **kwargs):
def __init__(self, name=None, touch_reload=None, workers=None, threads=None, mules=None, **kwargs):
"""
:param str|unicode name: Section name.
Expand All @@ -16,6 +16,8 @@ def __init__(self, name=None, touch_reload=None, workers=None, threads=None, **k
:param int threads: Number of threads per worker.
:param int mules: Number of mules to spawn.
:param kwargs:
"""
super(Section, self).__init__(strict_config=True, name=name, **kwargs)
Expand All @@ -29,6 +31,7 @@ def __init__(self, name=None, touch_reload=None, workers=None, threads=None, **k
self.workers.set_count_auto()

self.workers.set_thread_params(per_worker=threads)
self.workers.set_mules_params(mules=mules)
self.main_process.set_basic_params(vacuum=True)
self.main_process.set_naming_params(autonaming=True)
self.master_process.set_basic_params(enabled=True)
Expand Down

0 comments on commit 6d27e38

Please sign in to comment.