Commit 38fea5e1 authored by Florent Cayré's avatar Florent Cayré
Browse files

flake8

parent 51e3f4e41879
......@@ -42,6 +42,7 @@ def listdir(dirpath):
not fname.endswith('~') and
not isdir(join(dirpath, fname))]
data_files = [
# common files
[THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
......
BROKER_URL="redis://127.0.0.1:6379/3"
BROKER_URL = "redis://127.0.0.1:6379/3"
CELERYD_CONCURRENCY=1
CELERYD_PREFETCH_MULTIPLIER=1
CELERYD_CONCURRENCY = 1
CELERYD_PREFETCH_MULTIPLIER = 1
CELERY_SEND_EVENTS=1
CELERY_RESULT_BACKEND=BROKER_URL
CELERY_SEND_EVENTS = 1
CELERY_RESULT_BACKEND = BROKER_URL
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TASK_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml']
......@@ -12,4 +12,3 @@ CELERY_IMPORTS = ('cw_celerytask_helpers.redislogger', 'demotasks')
CUBICWEB_CELERYTASK_LOG_ALL = True
CUBICWEB_CELERYTASK_REDIS_URL = BROKER_URL
......@@ -189,7 +189,6 @@ class ICeleryTask(EntityAdapter):
else:
return 0.
@property
def state(self):
return self.result.state
......
......@@ -31,7 +31,6 @@ from cubicweb.devtools import testlib
from cubes.celerytask.ccplugin import CeleryMonitorCommand
class BaseCeleryTaskTC(testlib.CubicWebTC):
@classmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment