mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-28 10:48:12 +08:00
Task now uses a UUID4 instead of a LUID
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ Reference
|
||||
|
||||
.. py:attribute:: task
|
||||
|
||||
Name of the last task generated by this schedule.
|
||||
Id of the last task generated by this schedule.
|
||||
|
||||
.. py:method:: last_run()
|
||||
|
||||
|
||||
+9
-5
@@ -61,21 +61,21 @@ Reference
|
||||
:type hook: str or object
|
||||
:param redis: Optional redis connection
|
||||
:param kwargs: Keyword arguments for the task function
|
||||
:returns: The name of the task
|
||||
:returns: The uuid of the task
|
||||
:rtype: str
|
||||
|
||||
.. py:function:: result(name)
|
||||
.. py:function:: result(task_id)
|
||||
|
||||
Gets the result of a previously executed task
|
||||
|
||||
:param str name: the name of the task
|
||||
:param str task_id: the uuid or name of the task
|
||||
:returns: The result of the executed task
|
||||
|
||||
.. py:function:: fetch(name)
|
||||
.. py:function:: fetch(task_id)
|
||||
|
||||
Returns a previously executed task
|
||||
|
||||
:param str name: the name of the task
|
||||
:param str name: the uuid or name of the task
|
||||
:returns: The task
|
||||
:rtype: Task
|
||||
|
||||
@@ -87,6 +87,10 @@ Reference
|
||||
|
||||
Database model describing an executed task
|
||||
|
||||
.. py:attribute:: id
|
||||
|
||||
An :func:`uuid.uuid4()` identifier
|
||||
|
||||
.. py:attribute:: name
|
||||
|
||||
The name of the task
|
||||
|
||||
Reference in New Issue
Block a user