MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Query_SetTimeOut

Function Query_SetTimeOut

src/commands/cmd_query.c:274–277  ·  view source on GitHub ↗

set timeout for query execution

Source from the content-addressed store, hash-verified

272
273// set timeout for query execution
274CronTaskHandle Query_SetTimeOut(uint timeout, ExecutionPlan *plan) {
275 // increase execution plan ref count
276 return Cron_AddTask(timeout, QueryTimedOut, NULL, plan);
277}
278
279inline static bool _readonly_cmd_mode(CommandCtx *ctx) {
280 return strcasecmp(CommandCtx_GetCommandName(ctx), "graph.RO_QUERY") == 0;

Callers 1

_queryFunction · 0.85

Calls 1

Cron_AddTaskFunction · 0.85

Tested by

no test coverage detected