@classmethod
def get_storage_by_task_name(cls, task_name):
    """Get storage instance that was assigned to the given task.

        :param task_name: task's name for which storage should be get
        :rtype: DataStorage
        """
    storage_name = cls.get_storage_name_by_task_name(task_name, graceful=True)
    if storage_name:
        return cls.get_connected_storage(storage_name)
    return None
