Skip to content

Following Application examples lead to Instance of 'Celery' has no 'worker_main' member #6404

Description

@razerraz

Checklist

  • [ x] I have checked the issues list
    for similar or identical bug reports.
  • [ x] I have checked the pull requests list
    for existing proposed fixes.
  • [ x] I have checked the commit log
    to find out if the bug was already fixed in the master branch.
  • [x ] I have included all related issues and possible duplicate issues in this issue
    (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

  • None

Possible Duplicates

  • None

Description

I'm running celery inside a django project, from a python script. Until 5.0, I was able to run celery using worker_main() method :

from celery import Celery
app = Celery()
app.worker_main()

From the application related documentation page, nothing points out the fact that worker_main() method seems gone.

I suppose I miss something somewhere, but maybe because of some lack of clarity from documentation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions