comparison celeryconfig.py @ 467:3fc3ce53659b celery

starting celery branch
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 11 Sep 2010 01:55:46 +0200
parents
children a3d9d24acbec
comparison
equal deleted inserted replaced
466:183cee110578 467:3fc3ce53659b
1 # List of modules to import when celery starts.
2 import sys
3 import os
4 sys.path.append(os.getcwd())
5 CELERY_IMPORTS = ("pylons_app.lib.celerylib.tasks", )
6
7 ## Result store settings.
8 CELERY_RESULT_BACKEND = "database"
9 CELERY_RESULT_DBURI = "sqlite:///hg_app.db"
10
11
12 ## Broker settings.
13 BROKER_HOST = "localhost"
14 BROKER_PORT = 5672
15 BROKER_VHOST = "rabbitmqhost"
16 BROKER_USER = "rabbitmq"
17 BROKER_PASSWORD = "qweqwe"
18
19 ## Worker settings
20 ## If you're doing mostly I/O you can have more processes,
21 ## but if mostly spending CPU, try to keep it close to the
22 ## number of CPUs on your machine. If not set, the number of CPUs/cores
23 ## available will be used.
24 CELERYD_CONCURRENCY = 2
25 # CELERYD_LOG_FILE = "celeryd.log"
26 CELERYD_LOG_LEVEL = "DEBUG"
27 CELERYD_MAX_TASKS_PER_CHILD = 1
28
29 #CELERY_ALWAYS_EAGER = True
30 #rabbitmqctl add_user rabbitmq qweqwe
31 #rabbitmqctl add_vhost rabbitmqhost
32 #rabbitmqctl set_permissions -p rabbitmqhost rabbitmq ".*" ".*" ".*"