33 lines
1001 B
Python
33 lines
1001 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.task_manager.classes import CeleryQueue
|
|
|
|
queue_sources = CeleryQueue(
|
|
label=_('Sources'), name='sources'
|
|
)
|
|
queue_sources_periodic = CeleryQueue(
|
|
label=_('Sources periodic'), name='sources_periodic', transient=True
|
|
)
|
|
queue_sources_fast = CeleryQueue(
|
|
label=_('Sources fast'), name='sources_fast', transient=True
|
|
)
|
|
|
|
queue_sources_fast.add_task_type(
|
|
label=_('Generate staging file image'),
|
|
dotted_path='mayan.apps.sources.tasks.task_generate_staging_file_image'
|
|
)
|
|
queue_sources_periodic.add_task_type(
|
|
label=_('Check interval source'),
|
|
dotted_path='mayan.apps.sources.tasks.task_check_interval_source'
|
|
)
|
|
queue_sources.add_task_type(
|
|
label=_('Handle upload'),
|
|
dotted_path='mayan.apps.sources.tasks.task_source_handle_upload'
|
|
)
|
|
queue_sources.add_task_type(
|
|
label=_('Upload document'),
|
|
dotted_path='mayan.apps.sources.tasks.task_upload_document'
|
|
)
|