Skip to content

Commit

Permalink
put pool_size into settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent committed Dec 26, 2016
1 parent f03f521 commit 0bc4f95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions robot.py
Expand Up @@ -11,10 +11,10 @@
from importlib import import_module
from slackclient import SlackClient

from settings import APPS, SLACK_TOKEN, REDIS_URL
from settings import APPS, SLACK_TOKEN, REDIS_URL, POOL_SIZE


pool = Pool(16)
pool = Pool(POOL_SIZE)

CMD_PREFIX = '!'

Expand Down
8 changes: 6 additions & 2 deletions settings.py
Expand Up @@ -2,8 +2,12 @@
from __future__ import unicode_literals


APPS = ['hello_world', 'helper', 'giphy', 'ghost']

SLACK_TOKEN = None

REDIS_URL = None

# gevent pool size
POOL_SIZE = 20

# add your app name to this list
APPS = ['hello_world', 'helper', 'giphy', 'ghost']

0 comments on commit 0bc4f95

Please sign in to comment.