Refactor job processing app to do actual job queue and job subprocess launching, remove queue mananger app, update ocr app to use new job processing app

This commit is contained in:
Roberto Rosario
2012-07-30 07:36:02 -04:00
parent 20856b1589
commit 486f983d4b
27 changed files with 409 additions and 531 deletions

View File

@@ -9,13 +9,13 @@ from documents.models import DocumentType, DocumentTypeFilename, Document
from metadata.models import MetadataType, MetadataSet
from document_indexing.models import Index, IndexTemplateNode
from sources.models import WebForm, StagingFolder
from ocr.models import QueueDocument, QueueTransformation, DocumentQueue
from history.models import History
from taggit.models import Tag
from tags.models import TagProperties
from folders.models import Folder
from dynamic_search.models import RecentSearch
from django_gpg.runtime import gpg
# TODO: clear the job queues
bootstrap_options = {}
@@ -63,18 +63,6 @@ def nuke_database():
for obj in Role.objects.all():
obj.delete()
# Delete all document in the ocr queue
for obj in QueueDocument.objects.all():
obj.delete()
# Delete all the transformations for a queue
for obj in QueueTransformation.objects.all():
obj.delete()
# Delete all the ocr document queues
for obj in DocumentQueue.objects.all():
obj.delete()
# Delete all the remaining history events
for obj in History.objects.all():
obj.delete()