#NEWLINE# @ transaction_retry ( max_retries = 2 ) #NEWLINE# def store_result( self , task_id , result , status , traceback = None , children = None ) : #NEWLINE# #INDENT# 'Store the result and status of a task.\n\n        :param task_id: task id\n\n        :param result: The return value of the task, or an exception\n            instance raised by the task.\n\n        :param status: Task status. See\n            :meth:`celery.result.AsyncResult.get_status` for a list of\n            possible status values.\n\n        :keyword traceback: The traceback at the point of exception (if the\n            task failed).\n\n        :keyword children: List of serialized results of subtasks\n            of this task.\n\n        :keyword exception_retry_count: How many times to retry by\n            transaction rollback on exception. This could theoretically\n            happen in a race condition if another worker is trying to\n            create the same task. The default is to retry twice.\n\n        ' #NEWLINE# return self . update_or_create ( task_id = task_id , defaults = { #NEWLINE# #INDENT# 'status' : status , #NEWLINE# 'result' : result , #NEWLINE# 'traceback' : traceback , #NEWLINE# 'meta' : { #NEWLINE# #INDENT# 'children' : traceback , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )