Skip to content

Commit

Permalink
Documentation: Show Task in celery.task reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Jan 27, 2011
1 parent 9a07171 commit 928c5ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions celery/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Task(BaseTask):
store_errors_even_if_ignored = \
conf.CELERY_STORE_ERRORS_EVEN_IF_IGNORED
accept_magic_kwargs = self.accept_magic_kwargs
Task.__doc__ = BaseTask.__doc__

return Task

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/celery.task.base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
.. currentmodule:: celery.task.base

.. automodule:: celery.task.base
:members: create_task_cls, BaseTask, PeriodicTask, TaskType
:members: BaseTask, PeriodicTask, TaskType
5 changes: 5 additions & 0 deletions docs/reference/celery.task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
.. autofunction:: task

.. autofunction:: periodic_task

.. autoclass:: Task

.. seealso::
:class:`celery.task.base.BaseTask`.

0 comments on commit 928c5ef

Please sign in to comment.