question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate from djcelery to django_celery_results

See original GitHub issue

Hello,

Is there a documentation about migrating from djcelery to django_celery_results?

It seems there were 6 tables:

 public | djcelery_crontabschedule   | table | 
 public | djcelery_intervalschedule  | table | 
 public | djcelery_periodictask      | table | 
 public | djcelery_periodictasks     | table | 
 public | djcelery_taskstate         | table | 
 public | djcelery_workerstate       | table | 

And now only one:

public | django_celery_results_taskresult | table |

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spaceonecommented, Sep 14, 2021

When I rename celery to celery4 and kombu to kombu2 both libraries can be imported at the same time. manage.py sqlmigrate … now helps a little bit to get some SQL commands.

Workaround:

su - postgres -c "psql -d '$POSTGRES_DB' -c \"delete from django_migrations where app='import_api';\""
python3 migrate.py django_celery_results
su - postgres -c "psql -d '$POSTGRES_DB' -c 'ALTER TABLE "foo_bar" DROP CONSTRAINT "foo_barj_result_id_7383b884_fk_celery_taskmeta_id";'"
su - postgres -c "psql -d '$POSTGRES_DB' -c 'ALTER TABLE "foo_bar" ADD CONSTRAINT "foo_bar_result_id_7383b884_fk_django_celery_results_taskresult_id" FOREIGN KEY ("result_id") REFERENCES "django_celery_results_taskresult" ("id") DEFERRABLE INITIALLY DEFERRED;'"
python3 migrate.py --fake-initial foo
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug 53788 – Migrate from djcelery to django_celery_results during ...
So we have to migrate the database schema in a preup.sh of UCS@school 5.0 component. Therefore we need to backport python-django-celery-results from debian ......
Read more >
Getting started — django_celery_results 2.4.0 documentation
To use django-celery-results with your project you need to follow these steps: ... python manage.py migrate django_celery_results.
Read more >
Index name migration instability between database engines
I have been using the django-celery-results project with Django on an Oracle database. I had issues upgrading to 2.1+ versions.
Read more >
django-celery-results - PyPI
This extension enables you to store Celery task results using the Django ORM. It defines a single model (django_celery_results.models.TaskResult) used to store ...
Read more >
Error in migration of django app using celery - Stack Overflow
I think that I had the same problem. I tried to find duplicate names on installed apps and even modules named djcelery inside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found