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
352709c003ff
Commit
a5c13094
authored
Sep 27, 2016
by
David Douard
Browse files
[doc] update the README file
to explain a bit the example celeryconfig.py file.
parent
f9178bb40efd
Changes
1
Hide whitespace changes
Inline
Side-by-side
README
View file @
352709c0
...
...
@@ -22,6 +22,13 @@ celeryconfig.py example::
CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml']
In this configuration example, the ``cw_celerytask_helpers`` in
``CELERY_IMPORTS`` is required to have logging data (in the task) sent
back to the Cubicweb instance via Redis. The
``CUBICWEB_CELERYTASK_REDIS_URL`` is the Redis endpoint used for this
logging handling mechanism.
Start a worker::
# running cubicweb tasks (celeryconfig.py will be imported from your instance config directory)
...
...
@@ -44,7 +51,6 @@ variable (it must be an importable python module).
Running tasks
-------------
Create a task:
.. code-block:: python
...
...
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