Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
celerytask
Commits
f5ff381b3beb
Commit
38fea5e1
authored
Nov 15, 2016
by
Florent Cayré
Browse files
flake8
parent
51e3f4e41879
Changes
4
Hide whitespace changes
Inline
Side-by-side
__pkginfo__.py
View file @
f5ff381b
...
...
@@ -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'
]],
...
...
demo/celeryconfig.py
View file @
f5ff381b
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
entities.py
View file @
f5ff381b
...
...
@@ -189,7 +189,6 @@ class ICeleryTask(EntityAdapter):
else
:
return
0.
@
property
def
state
(
self
):
return
self
.
result
.
state
...
...
testutils.py
View file @
f5ff381b
...
...
@@ -31,7 +31,6 @@ from cubicweb.devtools import testlib
from
cubes.celerytask.ccplugin
import
CeleryMonitorCommand
class
BaseCeleryTaskTC
(
testlib
.
CubicWebTC
):
@
classmethod
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment