Giter Site home page Giter Site logo

Comments (4)

nmmapper avatar nmmapper commented on August 22, 2024

Am facing this also! It's simple

from celery.decorators import periodic_task

from django-plans.

nmmapper avatar nmmapper commented on August 22, 2024

If any one encounters this kind of error, the issue is quick easy to fix

  1. Solution 1 Disable autodiscover_tasks

#app.autodiscover_tasks(related_name="tasks")

This will ensure that celery does not scan for apps to find task to added, in this case the buggy plan.tasks won't be added also, because celery is not scanning for tasks in installed apps.

Though ensure that you set this variable

CELERY_IMPORTS = [ your tasks for celery to import ]

  1. Solution 2 Define which apps should be auto discored.
APPS_TO_FIND_TASKS = [ "app1", "app2, "app3", "app4"] # This can be handy if you have other thirdparty apps that you want to be automatically auto-discovered while rejecting others.

app.autodiscover_tasks(packages=APPS_TO_FIND_TASKS, related_name="tasks")

from django-plans.

Alir3z4 avatar Alir3z4 commented on August 22, 2024

I have explained why it would be better to completely drop celery from the code base.
#140 (comment)

Probably it would be better to leave some text in the docs to guide user how to run the management commands or use celery or a hint to Celery related docs page.

from django-plans.

PetrDlouhy avatar PetrDlouhy commented on August 22, 2024

The Celery dependency should be removed now.

from django-plans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.