Remove Sentry and celery from Mayan EDMS
This commit is contained in:
@@ -1,16 +1,5 @@
|
||||
from celery.decorators import task, periodic_task
|
||||
from celery.task.control import inspect
|
||||
|
||||
from job_processor.conf.settings import BACKEND
|
||||
|
||||
|
||||
@task
|
||||
def celery_task(func, *args, **kwargs):
|
||||
return func(*args, **kwargs)
|
||||
|
||||
|
||||
def process_job(func, *args, **kwargs):
|
||||
if BACKEND == 'celery':
|
||||
return celery_task.delay(func, *args, **kwargs)
|
||||
elif BACKEND is None:
|
||||
return func(*args, **kwargs)
|
||||
return func(*args, **kwargs)
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
"""Configuration options for the job_processing app"""
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from smart_settings.api import register_settings
|
||||
|
||||
register_settings(
|
||||
namespace=u'job_processor',
|
||||
module=u'job_processor.conf.settings',
|
||||
settings=[
|
||||
{'name': u'BACKEND', 'global_name': u'JOB_PROCESSING_BACKEND', 'default': None, 'description': _('Specified which job processing library to use, option are: None and celery.')},
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user