Skip to content
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

Example is confusing #25

Open
lukecyca opened this issue Aug 2, 2013 · 1 comment
Open

Example is confusing #25

lukecyca opened this issue Aug 2, 2013 · 1 comment

Comments

@lukecyca
Copy link

lukecyca commented Aug 2, 2013

In reading the example, the term "task" is very overloaded. It refers to a model object, a property of that object, as well as celery's task concept. For example:

@task
def add_task(task):
    time.sleep(random.choice([2,4,6,8,10]))
    print 'creating task %s' % task
    task = TaskItem(task=task)
    DBSession.add(task)
    transaction.commit()

I would suggest adopting some other arbitrary model for the purposes of the example. It would make it easier for a newb such as myself to understand. :)

@heronrs
Copy link

heronrs commented Jan 28, 2018

I should add that the Executing worker section was rather confusing for me to.

celery worker -A pyramid_celery.celery_app --ini myappsettings.ini, where celery_app is my actual app name didn't work..

celery worker -A pyramid_celery --ini myappsetting.ini worked.

Is that the expected behavior ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants