fulltext/routes.py
def task_status(id_type: str, identifier: str,
                version: Optional[str] = None) -> Response:
    """Get the status of a text extraction task."""
    # Authorization is required to work with submissions.
    authorizer: Optional[Authorizer] = None
    if id_type == SupportedBuckets.SUBMISSION:
        authorizer = make_authorizer(scopes.READ_COMPILE)

    data, code, headers = controllers.get_task_status(identifier, id_type,
                                                      version=version,
                                                      authorizer=authorizer)
    response: Response = make_response(jsonify(data), code, headers)
    return response
Get the status of a text extraction task.
Get the status of a text extraction task.
Get the status of a text extraction task .
def task_status(id_type: str, identifier: str,
                version: Optional[str] = None) -> Response:
    authorizer: Optional[Authorizer] = None
    if id_type == SupportedBuckets.SUBMISSION:
        authorizer = make_authorizer(scopes.READ_COMPILE)
    data, code, headers = controllers.get_task_status(identifier, id_type,
                                                      version=version,
                                                      authorizer=authorizer)
    response: Response = make_response(jsonify(data), code, headers)
    return response
def task_status ( id_type : str , identifier : str , version : Optional [ str ] = None ) -> Response : authorizer : Optional [ Authorizer ] = None if id_type == SupportedBuckets . SUBMISSION : authorizer = make_authorizer ( scopes . READ_COMPILE ) data , code , headers = controllers . get_task_status ( identifier , id_type , version = version , authorizer = authorizer ) response : Response = make_response ( jsonify ( data ) , code , headers ) return response
Get the status of a text extraction task.
Get the status of a text extraction task .
"""Get the status of a text extraction task.""" # Authorization is required to work with submissions.
id_type
str
identifier
str
version
Optional[str]