| 873 | } |
| 874 | |
| 875 | static 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 | |
| 883 | static void PythosSessionCtx_ResetModulesDict() { |
| 884 | RedisGearsPy_LOCK |
no test coverage detected