Skip to content

firemyst/pyramid_celery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Include pyramid_celery either by setting your includes in your .ini, or by calling config.include('pyramid_celery').

    pyramid.includes = pyramid_celery

Now you can either use class based:

from pyramid_celery import Task

class AddTask(Task):
    def run(self, x, y):
        print x+y

or decorator based:

from pyramid_celery import celery

@celery.task
def add(x, y):
    print x+y

Configuration

All standard celery configuration options will work. Check out http://ask.github.com/celery/configuration.html

Demo

To see it all in action check out pyramid_celery_demo, run rabbitmq-server and then do:

$ python setup.py develop
$ populate_pyramid_celery_demo ./development.ini
$ pserve ./development.ini
$ pceleryd ./development.ini

About

Pyramid configuration with celery integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published