If a query runs longer than the systemwide timeout (default 16 seconds or setting by gadmin), query will abort.


  • When calling the query through RESTFul API, add timeout in header, e.g., -H "GSQL-TIMEOUT:nnnnnnn". Timeout nnnnnnn is in millisecond (ms).

    E.g., call the query with timeout of 90 seconds.
curl -X GET -H "GSQL-TIMEOUT:90000" "http://localhost:9000/query/${graph_name}/${query_name}?${parameters}"

  • When calling the query throught GSQL, set time in the session, e.g, timeout is 90 seconds,
     GSQL> set query_timeout=90000