Skip to content

Commit c569d31

Browse files
hsenotauvipy
authored andcommitted
Document track_started setting
Explicitly reference the `track_started` setting to highlight the fact that task execution duration can not be obtained from a task result's `date_created` and `date_done` without a configuration change.
1 parent c985836 commit c569d31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/getting_started.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ To use :pypi:`django-celery-results` with your project you need to follow these
6060
.. code-block:: python
6161
6262
CELERY_RESULT_EXTENDED = True
63+
64+
If you want to track the execution duration of your tasks (by comparing `date_created` and `date_done` in TaskResult), enable the :setting:`track_started` setting.
65+
66+
.. code-block:: python
67+
68+
CELERY_TASK_TRACK_STARTED = True

0 commit comments

Comments
 (0)