def result(context, request):
    """
    Get result of the task.

    """
    result = request.get_task_result(request.GET["id"])
    if result.ready():
        return f"{ result.result }\n"
    else:
        return "Pending...\n"