graphai.api.common.utils module

graphai.api.common.utils.format_api_results(id, name, status, result)

Formats results coming from celery into the common output format of the API :param id: Id of the task :param name: Name of the task :param status: Task status :param result: Task results

Returns:

Appropriately formatted results dictionary