Пример #1
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_ocr = CeleryQueue(name='parsing', label=_('Parsing'))
queue_ocr.add_task_type(
    name='document_parsing.tasks.task_parse_document_version',
    label=_('Document version parsing'))
Пример #2
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_checkouts_periodic = CeleryQueue(name='checkouts_periodic',
                                       label=_('Checkouts periodic'),
                                       transient=True)
queue_checkouts_periodic.add_task_type(name='task_check_expired_check_outs',
                                       label=_('Check expired checkouts'))
Пример #3
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_mailing = CeleryQueue(
    name='mailing', label=_('Mailing')
)
queue_mailing.add_task_type(
    name='mailer.tasks.task_send_document',
    label=_('Send document')
)
Пример #4
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_checkouts_periodic = CeleryQueue(
    name='checkouts_periodic', label=_('Checkouts periodic'), transient=True
)
queue_checkouts_periodic.add_task_type(
    name='task_check_expired_check_outs',
    label=_('Check expired checkouts')
)
Пример #5
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_statistics = CeleryQueue(name='statistics',
                               label=_('Statistics'),
                               transient=True)

queue_statistics.add_task_type(name='statistics.tasks.task_execute_statistic',
                               label=_('Execute statistic'))
Пример #6
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_sources = CeleryQueue(name='sources', label=_('Sources'), transient=True)
queue_sources_periodic = CeleryQueue(name='sources_periodic',
                                     label=_('Sources periodic'))

queue_sources_periodic.add_task_type(
    name='sources.tasks.task_check_interval_source',
    label=_('Check interval source'))

queue_sources.add_task_type(name='sources.tasks.task_source_handle_upload',
                            label=_('Handle upload'))
queue_sources.add_task_type(name='sources.tasks.task_upload_document',
                            label=_('Upload document'))
Пример #7
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from common.queues import queue_tools
from task_manager.classes import CeleryQueue

queue_converter = CeleryQueue(name='converter',
                              label=_('Converter'),
                              transient=True)
queue_documents_periodic = CeleryQueue(name='documents_periodic',
                                       label=_('Documents periodic'),
                                       transient=True)
queue_uploads = CeleryQueue(name='uploads', label=_('Uploads'))
queue_documents = CeleryQueue(name='documents', label=_('Documents'))

queue_converter.add_task_type(
    name='documents.tasks.task_generate_document_page_image',
    label=_('Generate document page image'))

queue_documents.add_task_type(name='documents.tasks.task_delete_document',
                              label=_('Delete a document'))
queue_documents.add_task_type(
    name='documents.tasks.task_clean_empty_duplicate_lists',
    label=_('Clean empty duplicate lists'))

queue_documents_periodic.add_task_type(
    name='documents.tasks.task_check_delete_periods',
    label=_('Check document type delete periods'))
queue_documents_periodic.add_task_type(
    name='documents.tasks.task_check_trash_periods',
Пример #8
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_ocr = CeleryQueue(name='ocr', label=_('OCR'))
queue_ocr.add_task_type(name='ocr.tasks.task_do_ocr',
                        label=_('Document version OCR'))
Пример #9
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_sources = CeleryQueue(
    name='sources', label=_('Sources')
)
queue_sources_periodic = CeleryQueue(
    name='sources_periodic', label=_('Sources periodic'), transient=True
)
queue_sources_fast = CeleryQueue(
    name='sources_fast', label=_('Sources fast'), transient=True
)

queue_sources_fast.add_task_type(
    name='sources.tasks.task_generate_staging_file_image',
    label=_('Generate staging file image')
)
queue_sources_periodic.add_task_type(
    name='sources.tasks.task_check_interval_source',
    label=_('Check interval source')
)
queue_sources.add_task_type(
    name='sources.tasks.task_source_handle_upload',
    label=_('Handle upload')
)
queue_sources.add_task_type(
    name='sources.tasks.task_upload_document',
    label=_('Upload document')
Пример #10
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from common.queues import queue_tools
from task_manager.classes import CeleryQueue

queue_indexing = CeleryQueue(name='indexing', label=_('Indexing'))

queue_indexing.add_task_type(name='document_indexing.tasks.task_delete_empty',
                             label=_('Delete empty index nodes'))
queue_indexing.add_task_type(
    name='document_indexing.tasks.task_remove_document',
    label=_('Remove document'))
queue_indexing.add_task_type(
    name='document_indexing.tasks.task_index_document',
    label=_('Index document'))
queue_tools.add_task_type(name='document_indexing.tasks.task_rebuild_index',
                          label=_('Rebuild index'))
Пример #11
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_document_states = CeleryQueue(name='document_states',
                                    label=_('Document states'))
queue_document_states.add_task_type(
    name='document_states.tasks.task_launch_all_workflows',
    label=_('Launch all workflows'))
Пример #12
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from common.queues import queue_tools
from task_manager.classes import CeleryQueue

queue_indexing = CeleryQueue(name='indexing', label=_('Indexing'))

queue_indexing.add_task_type(
    name='document_indexing.tasks.task_delete_empty',
    label=_('Delete empty index nodes')
)
queue_indexing.add_task_type(
    name='document_indexing.tasks.task_remove_document',
    label=_('Remove document')
)
queue_indexing.add_task_type(
    name='document_indexing.tasks.task_index_document',
    label=_('Index document')
)
queue_tools.add_task_type(
    name='document_indexing.tasks.task_rebuild_index',
    label=_('Rebuild index')
)
Пример #13
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_default = CeleryQueue(
    name='default', label=_('Default'), is_default_queue=True
)
queue_tools = CeleryQueue(name='tools', label=_('Tools'))
queue_common_periodic = CeleryQueue(
    name='common_periodic', label=_('Common periodic'), transient=True
)
queue_common_periodic.add_task_type(
    name='common.tasks.task_delete_stale_uploads',
    label=_('Delete stale uploads')
)
Пример #14
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_metadata = CeleryQueue(name='metadata', label=_('Metadata'))
queue_metadata.add_task_type(name='metadata.tasks.task_remove_metadata_type',
                             label=_('Remove metadata type'))
queue_metadata.add_task_type(
    name='metadata.tasks.task_add_required_metadata_type',
    label=_('Add required metadata type'))
Пример #15
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_ocr = CeleryQueue(name='parsing', label=_('Parsing'))
queue_ocr.add_task_type(
    name='document_parsing.tasks.task_parse_document_version',
    label=_('Document version parsing')
)
Пример #16
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from common.queues import queue_tools
from task_manager.classes import CeleryQueue

queue_signatures = CeleryQueue(name='signatures', label=_('Signatures'))
queue_signatures.add_task_type(
    name='document_signatures.tasks.task_verify_key_signatures',
    label=_('Verify key signatures'))
queue_signatures.add_task_type(
    name='document_signatures.tasks.task_unverify_key_signatures',
    label=_('Unverify key signatures'))
queue_signatures.add_task_type(
    name='document_signatures.tasks.task_verify_document_version',
    label=_('Verify document version'))

queue_tools.add_task_type(
    name='document_signatures.tasks.task_verify_missing_embedded_signature',
    label=_('Verify missing embedded signature'))
Пример #17
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from common.queues import queue_tools
from task_manager.classes import CeleryQueue

queue_signatures = CeleryQueue(name='signatures', label=_('Signatures'))
queue_signatures.add_task_type(
    name='document_signatures.tasks.task_verify_key_signatures',
    label=_('Verify key signatures')
)
queue_signatures.add_task_type(
    name='document_signatures.tasks.task_unverify_key_signatures',
    label=_('Unverify key signatures')
)
queue_signatures.add_task_type(
    name='document_signatures.tasks.task_verify_document_version',
    label=_('Verify document version')
)

queue_tools.add_task_type(
    name='document_signatures.tasks.task_verify_missing_embedded_signature',
    label=_('Verify missing embedded signature')
)
Пример #18
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_default = CeleryQueue(name='default',
                            label=_('Default'),
                            is_default_queue=True)
queue_tools = CeleryQueue(name='tools', label=_('Tools'))
queue_common_periodic = CeleryQueue(name='common_periodic',
                                    label=_('Common periodic'),
                                    transient=True)
queue_common_periodic.add_task_type(
    name='common.tasks.task_delete_stale_uploads',
    label=_('Delete stale uploads'))
Пример #19
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from common.queues import queue_tools
from task_manager.classes import CeleryQueue

queue_converter = CeleryQueue(
    name='converter', label=_('Converter'), transient=True
)
queue_documents_periodic = CeleryQueue(
    name='documents_periodic', label=_('Documents periodic'), transient=True
)
queue_uploads = CeleryQueue(
    name='uploads', label=_('Uploads')
)
queue_uploads = CeleryQueue(
    name='documents', label=_('Documents')
)

queue_documents_periodic.add_task_type(
    name='documents.tasks.task_check_delete_periods',
    label=_('Check document type delete periods')
)
queue_documents_periodic.add_task_type(
    name='documents.tasks.task_check_trash_periods',
    label=_('Check document type trash periods')
)
queue_documents_periodic.add_task_type(
    name='documents.tasks.task_delete_stubs',
    label=_('Delete document stubs')
Пример #20
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_document_states = CeleryQueue(
    name='document_states', label=_('Document states')
)
queue_document_states.add_task_type(
    name='document_states.tasks.task_launch_all_workflows',
    label=_('Launch all workflows')
)
Пример #21
0
from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_mailing = CeleryQueue(name='mailing', label=_('Mailing'))
queue_mailing.add_task_type(name='mailer.tasks.task_send_document',
                            label=_('Send document'))
Пример #22
0
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

from task_manager.classes import CeleryQueue

queue_sources = CeleryQueue(
    name='sources', label=_('Sources'), transient=True
)
queue_sources_periodic = CeleryQueue(
    name='sources_periodic', label=_('Sources periodic')
)

queue_sources_periodic.add_task_type(
    name='sources.tasks.task_check_interval_source',
    label=_('Check interval source')
)

queue_sources.add_task_type(
    name='sources.tasks.task_source_handle_upload',
    label=_('Handle upload')
)
queue_sources.add_task_type(
    name='sources.tasks.task_upload_document',
    label=_('Upload document')
)