fix(core): keep launchd service logs outside protected Downloads

This commit is contained in:
DCCONSTRUCTIONS
2026-09-25 16:40:45 +03:00
parent 2e5d52521f
commit a7c64e009d
8 changed files with 230 additions and 2 deletions
+4 -1
View File
@@ -10,6 +10,8 @@ from dataclasses import dataclass
from pathlib import Path
from typing import Final, cast
from k1link.launchd_logs import launchd_log_path
MISSION_CORE_LAUNCH_AGENT_LABEL: Final = "com.nodedc.mission-core.local"
MISSION_CORE_LAUNCH_AGENT_SCHEMA: Final = "missioncore.local-launch-agent-plan/v1"
OBSERVATORY_LOCAL_WORKER_ENABLED_ENV: Final = (
@@ -60,6 +62,7 @@ class MissionCoreLaunchAgentPlan:
"desired_program_arguments": list(self.desired_program_arguments),
"current_process_type": self.current_process_type,
"desired_process_type": "Interactive",
"desired_log_path": plistlib.loads(self.desired_payload)["StandardOutPath"],
"changes": {
"repository_migration": self.current_working_directory
!= self.desired_working_directory,
@@ -172,7 +175,7 @@ def plan_mission_core_launch_agent(
desired_environment[OBSERVATORY_SOURCE_CAS_ROOT_ENV] = str(source_cas)
desired_environment[OBSERVATORY_RESULT_STAGING_ROOT_ENV] = str(result_staging)
desired_environment[OBSERVATORY_LOCAL_WORKER_ENABLED_ENV] = "1"
log_path = repository / ".runtime/mission-core/k1link-serve-launchd.log"
log_path = launchd_log_path("k1link-serve-launchd.log")
desired_program_arguments = (
str(uv_entrypoint),
"run",