Task now uses a UUID4 instead of a LUID

This commit is contained in:
Ilan Steemers
2015-07-08 13:33:03 +02:00
parent ddf861a16d
commit f8708cfd73
8 changed files with 91 additions and 49 deletions
+1 -1
View File
@@ -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
View File
@@ -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