New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Celery 4 or higher #3305
Comments
@hackdna I have brought us up to celery 4 (https://github.com/refinery-platform/refinery-platform/tree/hackdna/celery4-upgrade) but there appears to be some serious issues with the database backend and GroupResult (which is necessary, as things stand): celery/django-celery-results#40 We can try Django's cache, but I marked/tested the point at which we were still in celery3 with a full API overhaul (it might not be perfect, but I was able to run analyses/import files): https://github.com/refinery-platform/refinery-platform/tree/c5273ac5ae63ebf9052e91aff42d6e764139b919 We should discuss this offline, especially if you have some experience with this that I do not. An option could potentially be just using the AnsyncResult directly I was not planning on merging this anyway until after I refactored Celery (and certainly after it was working) but with the open pull requests, didn't want to leap ahead to refactoring without those merged and so worked on this. I think looking at this with fresh eyes might help when I come back to this after the refactoring. From Travis:
The cache backend is not much better but appears to have less of a deep-seeded problem:
|
Celery version used by Refinery (v1.6.9) is 3.1.20 (released on 2016-01-22).
Celery 4.3.0 is the latest stable version currently (released on 2019-03-31).
From Celery docs: "Please use Celery 3.1 for versions older than Django 1.8."
https://docs.celeryproject.org/en/v4.0.0/whatsnew-4.0.html
Requires:
See also: #2416 and #2614
There are known issues with django-celery, so it should probably be removed:
https://stackoverflow.com/questions/31504591/interfaceerror-connection-already-closed-using-django-celery-scrapy
https://tryolabs.com/blog/2014/02/12/long-running-process-and-django-orm/
The text was updated successfully, but these errors were encountered: