Open strogonoff opened 3 years ago
Downside is performance overhead, Redis may be faster and task status data is more or less ephemeral so hitting Postgres for it may not be warranted.
As of https://github.com/ietf-ribose/bibxml-service/commit/3c619642a61f4694c519be646106f93929d1f27b, we use ORM/DB to capture indexing outcome (one per indexing task), a bit more persistently than just in Redis backend for Celery.
Is this still under consideration?
Currently, task status/result persists in Redis, but if we want dataset indexing task history to be more reliable/exist for longer we should persist it in PostgreSQL (using
django-celery-results
). This would also make it available using Django ORM, making it more convenient to query task status.