def pprint_tasks(tasks):
    date_format = "%d-%m-%Y %H:%M"
    table = PTable(["task/job", "id", "type", "status", "rollback status",
        "date"])
    for task, jobs in tasks:
        task_date = datetime.fromtimestamp(long(task['timestamp']))
        table.add(["task", task['taskId'], task['type'], task['state'], "-",
            task_date.strftime(date_format)])
        for job in jobs:
            job_date = datetime.fromtimestamp(long(job['timestamp']))
            row = ["job", job['id'], job['type'], job['state'],
                    job['rollbackState'], job_date.strftime(date_format)]
            table.add(row)
        table.separator()
    table.pprint()
Remove empty keys for a :attr:`model` from the database. No
dataset/ETHPy150Open nacx/kahuna/kahuna/utils/prettyprint.py/pprint_tasks--crossover with--dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/odm/session.py/SessionModel.clean