********************** Return Value From Task ********************** Problem ======= You want to return a task result to the client. Solution ======== Set the task's :py:attr:`result` property with a user defined result object. The task's result property is serialized and returned back to the client. The client can access the task's result using the result property of the task after the task completes. .. literalinclude:: ..\..\..\code\HowTos\ReturnValue.py :language: python :linenos: Discussion ========== Returning a value after the task executes is necessary if the result needs processing. A task can return different types of results including user defined objects. To learn more about all of these options, read :ref:`working with task results`. See Also ======== * :ref:`workingwithtaskresults`