def call(self, task, decorators=None):
        """
        Call given task on service layer.

        :param task: task to be called. task will be decorated with
            TaskDecorator's contained in 'decorators' list
        :type task: instance of Task class
        :param decorators: list of TaskDecorator's / TaskResultDecorator's
            inherited classes
        :type decorators: list

        :return task_result: result of task call decorated with TaskResultDecorator's
            contained in 'decorators' list
        :rtype TaskResult instance
        """
        if decorators is None:
            decorators = []

        task = self.apply_task_decorators(task, decorators)

        data = task.get_data()
        name = task.get_name()

        result = self._inner_call(name, data)
        task_result = RawTaskResult(task, result)
        return self.apply_task_result_decorators(task_result, decorators)
def call ( self , task , decorators = None ) : if decorators is None : decorators = [ ] task = self . apply_task_decorators ( task , decorators ) data = task . get_data ( ) name = task . get_name ( ) result = self . _inner_call ( name , data ) task_result = RawTaskResult ( task , result ) return self . apply_task_result_decorators ( task_result , decorators )
Call given task on service layer.

        :param task: task to be called. task will be decorated with
            TaskDecorator's contained in 'decorators' list
        :type task: instance of Task class
        :param decorators: list of TaskDecorator's / TaskResultDecorator's
            inherited classes
        :type decorators: list

        :return task_result: result of task call decorated with TaskResultDecorator's
            contained in 'decorators' list
        :rtype TaskResult instance