Giter Club home page Giter Club logo

Comments (11)

adamcharnock avatar adamcharnock commented on June 5, 2024

Humm,

I am having the same issue. Did you find a work-around in the end?

I do have these tables: crontabschedule, djcelery_intervalschedule, djcelery_periodictask, djcelery_periodictasks, djcelery_taskstate, djcelery_workerstate

But no djcelery_taskmeta or djcelery_tasksetmeta tables.

from django-celery.

ShawnMilo avatar ShawnMilo commented on June 5, 2024

Same issue here. If I exclude djcelery it works fine.

Note: If you're using Django 1.3 you can just pass --exclude djcelery to dumpdata and it'll work.

from django-celery.

mo-mughrabi avatar mo-mughrabi commented on June 5, 2024

am having the same problem, is there a root fix to this problem since i have some data populated in the djcelery app and i would like to dump it as well?

from django-celery.

mvdwaeter avatar mvdwaeter commented on June 5, 2024

Same issue here, couldn't find it quicky so here a dirty workaround in the meanwhile:

$ ./manage.py dumpdata djcelery.crontabschedule --indent=2 > fixtures/djcelery.json
$ ./manage.py dumpdata djcelery.periodictask --indent=2 >> fixtures/djcelery.json

after that you'd have to replace [] with , in the json file

from django-celery.

niwinz avatar niwinz commented on June 5, 2024

Why the model is not synchronized TaskMeta when not in use the DB backend storage. However, when creating fixtures, it fails because it can not find this table. (Same issue :P)

I think this model should always synchronized, so avoid affecting other aspects.

from django-celery.

niwinz avatar niwinz commented on June 5, 2024

Workaround: Comment on these lines in djcelery / models.py at the end of the file.
I think these lines generate more problems than solutions.

if (django.VERSION[0], django.VERSION[1]) >= (1, 1):
    # Keep models away from syncdb/reset if Django database
    # backend is not being used.
    if not getattr(celery.backend, "create_django_tables", False):
        TaskMeta._meta.managed = False
        TaskSetMeta._meta.managed = False

from django-celery.

risicle avatar risicle commented on June 5, 2024

I'm having this issue too.

Luckily my backup scripts can exclude arbitrary models. But still.

from django-celery.

akoumjian avatar akoumjian commented on June 5, 2024

Just a +1 on this issue. Thank you for the workaround suggestions in the meantime.

from django-celery.

joncotton avatar joncotton commented on June 5, 2024

+1 Having this issue on celery==2.2.x & django-celery==2.2.x. @ShawnMilo's tip of using --exclude djcelery on the dumpdata command worked.

from django-celery.

inactivist avatar inactivist commented on June 5, 2024

+1 Having same issue on celery==2.5.1 and django-celery==2.5.1. --exclude djcelery works wonders.

from django-celery.

ask avatar ask commented on June 5, 2024

django-celery used to include the database models conditionally, so the result backend models were only included
if the database result backend was selected. This was later proved to be a bad idea so the models are always created now.

from django-celery.

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.