def __init__(self, task_id, task_status):
    self.id = task_id
    assert ('task' in task_status), 'No task data for {}'.format(self.id)
    assert ('status' in task_status), 'No status data for {}'.format(self.id)
    self.task = task_status['task']
    self.status = task_status['status']
def __init__(self, task_id, task_status):
    self.id = task_id
    assert ('task' in task_status), 'No task data for {}'.format(self.id)
    assert ('status' in task_status), 'No status data for {}'.format(self.id)
    self.task = task_status['task']
    self.status = task_status['status']