Transitions the backend to celery and celery beat

This commit is contained in:
Trenton Holmes authored and Trenton H committed 2022-09-26 11:25:34 -07:00
1 parent 185b352264
commit 9247300230
29 files changed
+437 -282

No files matched your search

+3 -7
View File
@@ -12,7 +12,7 @@ from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django_q.tasks import Task
from django_celery_results.models import TaskResult
from documents.parsers import get_default_file_extension
@@ -527,19 +527,15 @@ class UiSettings(models.Model):
class PaperlessTask(models.Model):
acknowledged = models.BooleanField(default=False)
task_id = models.CharField(max_length=128)
name = models.CharField(max_length=256)
created = models.DateTimeField(_("created"), auto_now=True)
started = models.DateTimeField(_("started"), null=True)
attempted_task = models.OneToOneField(
Task,
TaskResult,
on_delete=models.CASCADE,
related_name="attempted_task",
null=True,
blank=True,
)
acknowledged = models.BooleanField(default=False)
class Comment(models.Model):