Files
mayan-edms/mayan/apps/mayan_statistics/queues.py
Roberto Rosario 2e632f658d Remove tasks literals
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-14 17:03:38 -04:00

16 lines
495 B
Python

from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.task_manager.classes import CeleryQueue
from mayan.apps.task_manager.workers import worker_slow
queue_statistics = CeleryQueue(
label=_('Statistics'), name='statistics', transient=True, worker=worker_slow
)
task_execute_statistic = queue_statistics.add_task_type(
label=_('Execute statistic'),
dotted_path='mayan.apps.mayan_statistics.tasks.task_execute_statistic'
)