From 4eed3f1730c6c018d5970edb90921ba3e44f7d87 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 24 Jan 2023 22:43:18 +0100 Subject: removed HttpLaunchService and related code this was used for testing but is no longer wanted in this form --- zenserver/zenserver.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'zenserver/zenserver.cpp') diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index 9ca71ed81..606047105 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -110,7 +110,6 @@ ZEN_THIRD_PARTY_INCLUDES_END #include "monitoring/httpstatus.h" #include "projectstore.h" #include "testing/httptest.h" -#include "testing/launch.h" #include "upstream/upstream.h" #include "zenstore/gc.h" @@ -265,23 +264,6 @@ public: m_ProjectStore = new zen::ProjectStore(*m_CidStore, m_DataRoot / "projects", m_GcManager); m_HttpProjectService.reset(new zen::HttpProjectService{*m_CidStore, m_ProjectStore}); -#if ZEN_WITH_EXEC_SERVICES - - if (ServerOptions.ExecServiceEnabled) - { - ZEN_INFO("instantiating exec service"); - - std::filesystem::path SandboxDir = m_DataRoot / "exec" / "sandbox"; - zen::CreateDirectories(SandboxDir); - m_HttpLaunchService = std::make_unique(*m_CidStore, SandboxDir); - } - else - { - ZEN_INFO("NOT instantiating exec services"); - } - -#endif // ZEN_WITH_EXEC_SERVICES - #if ZEN_WITH_COMPUTE_SERVICES if (ServerOptions.ComputeServiceEnabled) { @@ -329,15 +311,6 @@ public: m_Http->RegisterService(*m_CidService); -#if ZEN_WITH_EXEC_SERVICES - if (ServerOptions.ExecServiceEnabled) - { - if (m_HttpLaunchService != nullptr) - { - m_Http->RegisterService(*m_HttpLaunchService); - } - } -#endif // ZEN_WITH_EXEC_SERVICES #if ZEN_WITH_COMPUTE_SERVICES if (ServerOptions.ComputeServiceEnabled) { @@ -611,9 +584,6 @@ private: zen::HttpAdminService m_AdminService{m_GcScheduler}; zen::HttpHealthService m_HealthService; zen::MeshTracker m_ZenMesh{m_IoContext}; -#if ZEN_WITH_EXEC_SERVICES - std::unique_ptr m_HttpLaunchService; -#endif // ZEN_WITH_EXEC_SERVICES #if ZEN_WITH_COMPUTE_SERVICES std::unique_ptr m_HttpFunctionService; #endif // ZEN_WITH_COMPUTE_SERVICES -- cgit v1.2.3