def CreateRetryTask(self):
    """Creates a new task to retry a previously abandoned task.

    The retry task will have a new identifier but most of the attributes
    will be a copy of the previously abandoned task.

    Returns:
      Task: a task to retry a previously abandoned task.
    """
    retry_task = Task(session_identifier=self.session_identifier)
    retry_task.file_entry_type = self.file_entry_type
    retry_task.merge_priority = self.merge_priority
    retry_task.path_spec = self.path_spec
    retry_task.storage_file_size = self.storage_file_size

    self.has_retry = True

    return retry_task
def CreateRetryTask ( self ) : retry_task = Task ( session_identifier = self . session_identifier ) retry_task . file_entry_type = self . file_entry_type retry_task . merge_priority = self . merge_priority retry_task . path_spec = self . path_spec retry_task . storage_file_size = self . storage_file_size self . has_retry = True return retry_task
Creates a new task to retry a previously abandoned task.

    The retry task will have a new identifier but most of the attributes
    will be a copy of the previously abandoned task.

    Returns:
      Task: a task to retry a previously abandoned task.