def mock_task(name, state, result):
    return dict(id=uuid(), name=name, state=state, result=result)
def mock_task(name, state, result):
    return dict(id=uuid(), name=name, state=state, result=result)