MCPcopy Create free account
hub / github.com/RedisGears/RedisGears / PythonSessionCtx_Create

Function PythonSessionCtx_Create

plugins/python/redisgears_python.c:875–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875static PythonSessionCtx* PythonSessionCtx_Create(const char *id, const char *desc, const char** requirementsList, size_t requirementsListLen, bool forceReqReinstallation){
876
877 PythonSessionCtx* session = PythonSessionCtx_CreateWithId(id, desc, requirementsList, requirementsListLen, forceReqReinstallation);
878 session->srctx = RedisGears_SessionRegisterCtxCreate(pluginCtx);
879 RedisGears_SessionRegisterSetMaxIdle(session->srctx, pythonConfig.installReqMaxIdleTime);
880 return session;
881}
882
883static void PythosSessionCtx_ResetModulesDict() {
884 RedisGearsPy_LOCK

Callers 1

RedisGearsPy_ExecuteFunction · 0.85

Calls 1

Tested by

no test coverage detected