Skip to content

Instantly share code, notes, and snippets.

@mrluanma
Created April 16, 2011 02:42
Show Gist options
  • Save mrluanma/922805 to your computer and use it in GitHub Desktop.
Save mrluanma/922805 to your computer and use it in GitHub Desktop.
celery using beanstalkd as work queue, you may need this fix http://goo.gl/d3igM
# File: celeryconfig.py -*- Encoding: utf-8 -*-
BROKER_BACKEND = 'beanstalk'
BROKER_HOST = '127.0.0.1'
BROKER_PORT = 11300
CELERY_IGNORE_RESULT = True
CELERY_IMPORTS = ("tasks", )
# File: tasks.py -*- Encoding: utf-8 -*-
from celery.task import task
@task
def add(x, y):
return x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment