ExposuresProvider / cam-kp-api

Web service API for the NCATS Data Translator CAM-KP
MIT License
3 stars 2 forks source link

Query timing out #230

Open Shalsh23 opened 3 years ago

Shalsh23 commented 3 years ago

The following query times out while running against cam-kp-api swagger /query endpoint:

{
    "message": {
        "query_graph": {
            "nodes": {
                "n0": {
                    "id": "UniProtKB:P52788",
                    "category":"biolink:Gene"
                },
                "n1": {
                    "category": "biolink:ChemicalSubstance"
                }
            },
            "edges": {
                "e01": {
                    "subject": "n0",
                    "object": "n1"
                }
            }
        }
    }
}
jdr0887 commented 3 years ago

I have added this test to the suite of the integration tests and it passes. It is in the "adding-tests" branch.

FWIW, one thing I have noticed is that the Blazegraph DB can start to thrash or get in a funky state. If you can't run queries via the web interface (https://stars-app.renci.org/cam/#query), then the server might need to be bounced.

jdr0887 commented 3 years ago

I have all the querygraphs from https://github.com/NCATSTranslator/testing/tree/main/ars-requests/not-none included in the suite of integration tests in the "adding-tests" branch so far. I have run them a few times and occasionally one will time out, but more often than not, they will all pass. I will create a PR to merge them into master.