'Get task meta-data for a task by id.'

def _get_task_meta_for(self, task_id):

    obj = self.collection.find_one({u'_id': task_id})
    if obj:
        return self.meta_from_decoded({u'task_id': obj[u'_id'], u'status': obj[u'status'], u'result': self.decode(obj[u'result']), u'date_done': obj[u'date_done'], u'traceback': self.decode(obj[u'traceback']), u'children': self.decode(obj[u'children'])})
    return {u'status': states.PENDING, u'result': None}
