Skip to content

Update celeryconfig.py.example to use BROKER_URL and remove deprecated c... #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions celeryconfig.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
#
# Rename this file to celeryconfig.py
# Command for test:
# celeryd --loglevel=INFO
BROKER_HOST = 'localhost'
BROKER_PORT = 5672
BROKER_USER = 'myuser'
BROKER_PASSWORD = 'mypassword'
BROKER_VHOST = 'myvhost'
# celery worker --loglevel=INFO
BROKER_URL = 'amqp://myuser:mypassword@localhost:5672//'
CELERY_IMPORTS = ("test_tasks", )
CELERY_RESULT_BACKEND = "amqp"
CELERY_AMQP_TASK_RESULT_EXPIRES = 1000
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
1. Install celery, then copy ``celeryconfig.py.example`` to ``celeryconfig.py``
and tune the configuration file. Follow celery "getting started" guide:
http://docs.celeryproject.org/en/latest/getting-started/index.html
2. Launch celeryd as ``celeryd --loglevel=INFO``.
2. Launch the celery worker with ``celery worker --loglevel=INFO``.
Make sure that tasks "test_tasks.mkdir" and "test_tasks.MkdirTask" are found.
3. Run tests with ``nosetests`` command.

Expand Down