@@ -66,7 +66,7 @@ bool ServerStartCmd::Exec(const std::string& host, int port,
6666 si.cb = sizeof (si);
6767 ZeroMemory (&pi, sizeof (pi));
6868 std::wstring params = L" --start-server" ;
69- params += L" --config_file_path \" " +
69+ params += L" --config_file_path \" " +
7070 file_manager_utils::GetConfigurationPath ().wstring () + L" \" " ;
7171 params += L" --data_folder_path \" " +
7272 file_manager_utils::GetCortexDataPath ().wstring () + L" \" " ;
@@ -80,17 +80,17 @@ bool ServerStartCmd::Exec(const std::string& host, int port,
8080 mutable_cmds.push_back (L' \0 ' );
8181 // Create child process
8282 if (!CreateProcess (
83- NULL , // No module name (use command line)
83+ NULL , // No module name (use command line)
8484 mutable_cmds
85- .data (), // Command line (replace with your actual executable)
86- NULL , // Process handle not inheritable
87- NULL , // Thread handle not inheritable
88- FALSE , // Set handle inheritance
89- CREATE_NO_WINDOW, // No new console
90- NULL , // Use parent's environment block
91- NULL , // Use parent's starting directory
92- &si, // Pointer to STARTUPINFO structure
93- &pi)) // Pointer to PROCESS_INFORMATION structure
85+ .data (), // Command line (replace with your actual executable)
86+ NULL , // Process handle not inheritable
87+ NULL , // Thread handle not inheritable
88+ FALSE , // Set handle inheritance
89+ CREATE_NO_WINDOW, // No new console
90+ NULL , // Use parent's environment block
91+ NULL , // Use parent's starting directory
92+ &si, // Pointer to STARTUPINFO structure
93+ &pi)) // Pointer to PROCESS_INFORMATION structure
9494 {
9595 std::cout << " Could not start server: " << GetLastError () << std::endl;
9696 return false ;
@@ -109,7 +109,9 @@ bool ServerStartCmd::Exec(const std::string& host, int port,
109109 auto download_srv = std::make_shared<DownloadService>();
110110 auto dylib_path_mng = std::make_shared<cortex::DylibPathManager>();
111111 auto db_srv = std::make_shared<DatabaseService>();
112- EngineService (download_srv, dylib_path_mng, db_srv).RegisterEngineLibPath ();
112+ EngineService (download_srv, dylib_path_mng, db_srv,
113+ std::make_shared<cortex::TaskQueue>(1 , " task_queue" ))
114+ .RegisterEngineLibPath ();
113115
114116 std::string p = cortex_utils::GetCurrentPath () + " /" + exe;
115117 commands.push_back (p);
0 commit comments