Comments (11)
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.
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.
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.
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.
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.
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.
I'm having this issue too.
Luckily my backup scripts can exclude arbitrary models. But still.
from django-celery.
Just a +1 on this issue. Thank you for the workaround suggestions in the meantime.
from django-celery.
+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.
+1 Having same issue on celery==2.5.1 and django-celery==2.5.1. --exclude djcelery
works wonders.
from django-celery.
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)
- djcelerymon: AttributeError: type object 'Command' has no attribute 'option_list'
- Migrate to github actions from travis HOT 2
- djcelery released a task that has been deleted
- Migrate from djcelery to django_celery_results HOT 6
- Tasks being executed even without djcelery
- incompatibility with celery HOT 1
- Must used `"setuptools<58.0.0"` to install because of `anyjson` HOT 1
- celery-beat process make the CPU usage too high HOT 2
- Some tests misusing assertTrue for comparisons
- The "http://celeryproject.org/" site is gone? HOT 2
- django-celery doesn't work in django 4.0 HOT 5
- Changing instances of ugettext, ugettext_lazy, ungettext, and force_unicode for Django 4.0 HOT 2
- Django celery with redis broker executing same task indefinitely
- This error occurred when I started celery worker
- `pip install django-celery` gives error HOT 4
- Unrecoverable error in Celery worker: ReadOnlyError with Redis backend
- Error loading Celery application with Django module
- celery cannot connect to postgresql HOT 2
- celery and django-celery version do not match,show syntaxError HOT 3
- I use celery in the Django project, but why does celery keep increasing threads?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-celery.